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 Oct 7, 2024
1 parent a2eb47b commit 53c9aab
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 53c9aab

Please sign in to comment.