Skip to content

Commit

Permalink
fix(post_meta): default to localized date formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
David-Guillot committed Nov 12, 2024
1 parent 3e53621 commit 63ae0a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/post_meta.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{- $scratch := newScratch }}

{{- if not .Date.IsZero -}}
{{- $scratch.Add "meta" (slice (printf "<span title='%s'>%s</span>" (.Date) (.Date | time.Format (default "January 2, 2006" site.Params.DateFormat)))) }}
{{- $scratch.Add "meta" (slice (printf "<span title='%s'>%s</span>" (.Date) (.Date | time.Format (default ":date_long" site.Params.DateFormat)))) }}
{{- end }}

{{- if (.Param "ShowReadingTime") -}}
Expand Down

0 comments on commit 63ae0a1

Please sign in to comment.