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 authored Jul 9, 2024
1 parent 9ea3bb0 commit a9929eb
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 a9929eb

Please sign in to comment.