Format dates as YYYY-MM-DD
This commit is contained in:
parent
e46b83375d
commit
8d534bcdad
|
@ -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 }}
|
||||||
|
|
Loading…
Reference in New Issue