Add an 'Updated' entry to the single page banner when lastmod mismatches date

This commit is contained in:
Dave Minter 2018-10-24 21:20:14 +02:00
parent 31231a681a
commit 936d286b62

View file

@ -3,6 +3,7 @@
<h1><span class="title">{{ .Title | markdownify }}</span></h1>
{{ with .Params.author }}<h2 class="author">{{ . }}</h2>{{ end }}
{{ if (gt .Params.date 0) }}<h2 class="date">{{ .Date.Format "2006/01/02" }}</h2>{{ end }}
{{ if not (eq .Lastmod .Date) }}<span class="lastmod">Updated {{ .Lastmod.Format "2006/01/02" }}</span>{{ end }}
</div>
<main>