mirror of
https://github.com/ItsDrike/itsdrike.com.git
synced 2025-01-24 04:14:35 +00:00
Show revision date if added
This commit is contained in:
parent
d405c24b4c
commit
61b1cffd15
|
@ -5,6 +5,13 @@
|
||||||
|
|
||||||
{{ if .IsPage }}
|
{{ if .IsPage }}
|
||||||
<p>{{ partial "content-details.html" . }}</p>
|
<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 }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if .Content }}
|
{{ if .Content }}
|
||||||
|
|
Loading…
Reference in a new issue