From c59193fc48c104389d8b3e9e6857c7aa46221a92 Mon Sep 17 00:00:00 2001
From: Saxodwarf <40502346+Saxodwarf@users.noreply.github.com>
Date: Sun, 26 Dec 2021 09:22:10 +0100
Subject: [PATCH] Use hugo 0.87's date formatting feature with time.Format
(#555)
---
layouts/partials/post_meta.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/layouts/partials/post_meta.html b/layouts/partials/post_meta.html
index 4f86d4ae..9225f13a 100644
--- a/layouts/partials/post_meta.html
+++ b/layouts/partials/post_meta.html
@@ -1,7 +1,7 @@
{{- $scratch := newScratch }}
{{- if not .Date.IsZero -}}
-{{- $scratch.Add "meta" (slice (printf "%s" (.Date) (.Date.Format (default "January 2, 2006" .Site.Params.DateFormat)))) }}
+{{- $scratch.Add "meta" (slice (printf "%s" (.Date) (.Date | time.Format (default "January 2, 2006" .Site.Params.DateFormat)))) }}
{{- end }}
{{- if (.Param "ShowReadingTime") -}}