diff --git a/themes/mytheme/layouts/_default/single.html b/themes/mytheme/layouts/_default/single.html index 752c0ff..3dcb80c 100644 --- a/themes/mytheme/layouts/_default/single.html +++ b/themes/mytheme/layouts/_default/single.html @@ -13,10 +13,9 @@ {{- end }}
- {{- $scratch := newScratch }} - {{- if not .Date.IsZero -}} - {{- $scratch.Add "meta" (slice (printf "%s" (.Date) (.Date | time.Format (default "January 2, 2006" site.Params.DateFormat)))) }} - {{- end }} + {{- if not .Date.IsZero -}} + {{- (slice (printf "%s" (.Date) (.Date | time.Format (default "January 2, 2006" site.Params.DateFormat)))) }} + {{- end }}