Merge pull request #452 from ttybitnik/fix/blog-list-dates

Fix: Implement builtin localization for dates in blog list
This commit is contained in:
Djordje Atlialp 2024-10-18 00:22:43 +02:00 committed by GitHub
commit 88cdc261a2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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>