Lastmod is autopopulated from Date if not set.
This commit is contained in:
parent
9b1c451aed
commit
1b0cead11a
1 changed files with 2 additions and 10 deletions
|
|
@ -13,7 +13,7 @@
|
|||
<div class="content">
|
||||
{{ .Content }}
|
||||
|
||||
{{ if not .Lastmod.IsZero }}{{ partial "dates.html" . }}{{ end -}}
|
||||
{{ if ne .Lastmod .Date }}{{ partial "dates.html" . }}{{ end -}}
|
||||
</div>
|
||||
</article>
|
||||
</main>
|
||||
|
|
|
|||
Loading…
Reference in a new issue