@ -10,11 +10,12 @@
the summary is shorter than the full post.
-->
{{ $date_is_set := (not (eq (dateFormat "2006-01-02" .Params.date) "0001-01-01")) }}
<article class="summary">
<header>
<h1 class="post-title"><a href='{{ .Permalink }}'> {{ .Title }}</a> </h1>
{{ with .Params.date }}
<span class="post-date">{{ dateFormat "Mon Jan 2, 2006" . }}</span>
{{ if $date_is_set }}
<span class="post-date">{{ dateFormat "Mon Jan 2, 2006" .Params.date }}</span>
{{ end }}
</header>