mirror of
https://github.com/ItsDrike/itsdrike.com.git
synced 2025-01-23 20:14:33 +00:00
Show revision date if added
This commit is contained in:
parent
d405c24b4c
commit
61b1cffd15
|
@ -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 }}
|
||||
|
|
Loading…
Reference in a new issue