[*] fix: 0001-01-01 when doesn't provide a date

This commit is contained in:
Zhai2333 2019-06-09 17:59:20 +08:00
parent 83381f44e1
commit 786243dc1d
No known key found for this signature in database
GPG Key ID: A177A74655220398

View File

@ -3,9 +3,11 @@
<h1 class="post-title">
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h1>
<div class="post-meta">
{{ if .Params.Date }}
<span class="post-date">
{{ .Date.Format "2006-01-02" }}
</span>
{{ end }}
{{ with .Params.Author }}
<span class="post-author">::
{{ . }}