mirror of
https://github.com/yihui/hugo-xmin.git
synced 2024-12-25 22:53:32 +02:00
Add an 'Updated' entry to the single page banner when lastmod mismatches date
This commit is contained in:
parent
31231a681a
commit
936d286b62
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue