fix: implement builtin i18n for blog list dates

This commit is contained in:
ttybitnik 2023-11-26 17:59:14 -03:00
parent 51e697bea7
commit 4bd2617fd0
No known key found for this signature in database
GPG key ID: B52D1006EFAC93DF

View file

@ -19,9 +19,9 @@
<span class="post-title">{{.Title}}</span>
<span class="post-day">
{{ if .Site.Params.dateformShort }}
{{ .Date.Format .Site.Params.dateformShort }}
{{ time.Format .Site.Params.dateformShort .Date }}
{{ else }}
{{ .Date.Format "Jan 2"}}
{{ time.Format "Jan 2" .Date }}
{{ end }}
</span>
</a>