From 4d9a3e3f2aecae45ea07b4db181ebac4ac319e09 Mon Sep 17 00:00:00 2001 From: David Guillot Date: Sat, 20 Sep 2025 15:59:48 +0000 Subject: [PATCH] fix(post_meta): default to localized date formatting (#1552) Fixes #1611 See Hugo docs: https://gohugo.io/functions/time/format/#localization --- 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 b0c0417e..be71956d 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 | time.Format (default "January 2, 2006" site.Params.DateFormat)))) }} +{{- $scratch.Add "meta" (slice (printf "%s" (.Date) (.Date | time.Format (default ":date_long" site.Params.DateFormat)))) }} {{- end }} {{- if (.Param "ShowReadingTime") -}}