Format dates as YYYY-MM-DD

This commit is contained in:
Joe Roe 2021-08-09 13:44:57 +02:00
parent e46b83375d
commit 8d534bcdad
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@
{{ if or (.Params.author) (.Params.date) }} {{ if or (.Params.author) (.Params.date) }}
<p> <p>
{{ if .Params.author }}By {{ .Params.author }}{{ if .Date }}, {{ end }}{{ end }} {{ if .Params.author }}By {{ .Params.author }}{{ if .Date }}, {{ end }}{{ end }}
{{ if .Date }}{{ .Date.Format "2 January 2006" }}{{ end }} {{ if .Date }}{{ .Date.Format "2006-01-02" }}{{ end }}
</p> </p>
{{ end }} {{ end }}
{{ end }} {{ end }}