mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2025-05-13 06:34:24 -04:00
fix(post_meta): default to localized date formatting
Fixes #1611 See Hugo docs: https://gohugo.io/functions/time/format/#localization
This commit is contained in:
parent
e2e1011bde
commit
86e561d573
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
{{- $scratch := newScratch }}
|
{{- $scratch := newScratch }}
|
||||||
|
|
||||||
{{- if not .Date.IsZero -}}
|
{{- 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 }}
|
{{- end }}
|
||||||
|
|
||||||
{{- if (.Param "ShowReadingTime") -}}
|
{{- if (.Param "ShowReadingTime") -}}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue