From ca6e11e46a547bfd631238de1f222c5eac675339 Mon Sep 17 00:00:00 2001 From: Morgan Date: Sun, 29 Oct 2023 11:19:00 +0900 Subject: [PATCH] edited post --- themes/mytheme/layouts/_default/single.html | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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 }}