1
Fork 0

Only show date if there's a valid date

This commit is contained in:
Jake Howard 2018-02-14 21:07:05 +00:00
parent b295728e18
commit 54cdfb6699
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -1,4 +1,4 @@
{{ if .Params.date }}
{{ if not .Date.IsZero }}
<span class="pr-1" title='{{ .Date.Format "January 2 2006" }}'>{{ .Date.Format "2006-01-02" }}</span>
{{ end }}