mirror of
https://github.com/yihui/hugo-xmin.git
synced 2024-11-25 01:39:19 +02:00
Add an 'Updated' entry to the single page banner when lastmod mismatches date
This commit is contained in:
parent
31231a681a
commit
936d286b62
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue