diff options
Diffstat (limited to 'layouts/partials/item-post.html')
-rw-r--r-- | layouts/partials/item-post.html | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/layouts/partials/item-post.html b/layouts/partials/item-post.html index d7a58a3..cc289d2 100644 --- a/layouts/partials/item-post.html +++ b/layouts/partials/item-post.html @@ -1,5 +1,8 @@ <a href="{{- .Permalink }}" class="collection-item" itemprop="url" target="_blank" > <time datetime="{{ .Date }}" - itemprop="datePublished">{{- .Date.Format (.Site.Params.dateFormatToUse | default "2006-01-02") }}</time> + itemprop="datePublished"> + {{ if .Date }} + {{- .Date.Format (.Site.Params.dateFormatToUse | default "2006-01-02") }} + {{ end }}</time> <span> </span> {{- .Title }} </a>
\ No newline at end of file |