Added dateFormat site Param

Makes it possible to use any date format
This commit is contained in:
jacmoe 2022-12-06 03:19:16 +01:00
parent 8b3973dc2f
commit 85b773e7bf
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
{{ if eq site.Language.Lang "it" }}
{{ .Format "02-01-2006" }}
{{ if site.Params.dateFormat }}
{{ .Format site.Params.dateFormat }}
{{ else }}
{{ .Format "2006-01-02" }}
{{ end }}