diff options
Diffstat (limited to 'layouts/_default')
| -rw-r--r-- | layouts/_default/list.html | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 917ca38..a76be32 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -5,9 +5,11 @@ <li> <div class="flex"> <a href="{{ .Permalink }}" class="truncate">{{ .Title }}</a> - {{ if eq .Kind "page" }} - <time class="nowrap" datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">{{ .Date.Format "Jan 2, 2006" }}</time> - {{ end }} + {{ if not .Date.IsZero }} + {{ if eq .Kind "page" }} + <time class="nowrap" datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">{{ .Date.Format "Jan 2, 2006" }}</time> + {{ end }} + {{ end }} </div> </li> {{- end }} |
