Show revision date if added

This commit is contained in:
ItsDrike 2022-04-12 12:35:34 +02:00
parent d405c24b4c
commit 61b1cffd15
No known key found for this signature in database
GPG key ID: B014E761034AF742

View file

@ -5,6 +5,13 @@
{{ if .IsPage }}
<p>{{ partial "content-details.html" . }}</p>
<!-- When directly viewing the article, if available, we also include revision date-->
{{ if and (not .Lastmod.IsZero) (not (.Lastmod.Equal .Date)) }}
<span class="pr-2" title='{{ .Lastmod.Format "January 2 2006" }}'>
<i class="pr-1 content-detail">Article revised in: {{ .Lastmod.Format "January 2 2006" }}</i>
</span>
{{ end }}
{{ end }}
{{ if .Content }}