Only show date if there's a valid date
This commit is contained in:
parent
b295728e18
commit
54cdfb6699
1 changed files with 1 additions and 1 deletions
|
@ -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 }}
|
||||
|
||||
|
|
Loading…
Reference in a new issue