Add LastMod time in article info

Add the date of the last modification to the line with the publish date
This commit is contained in:
TheGroundZero 2020-08-26 13:49:16 +02:00 committed by GitHub
parent 6fa58f635e
commit 90a80366a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -75,6 +75,7 @@
<line x1="3" y1="10" x2="21" y2="10"></line>
</svg>
{{ if .Site.Params.dateformNumTime }}{{ dateFormat .Site.Params.dateformNumTime .Date.Local }}{{ else }}{{ dateFormat "2006-01-02 15:04 -0700" .Date.Local }}{{ end }}
{{ if .LastMod }} (Last updated: {{ if .Site.Params.dateformNumTime }}{{ dateFormat .Site.Params.dateformNumTime .LastMod.Local }}{{ else }}{{ dateFormat "2006-01-02 15:04 -0700" .LastMod.Local }}){{ end }}
</p>
{{- if .GitInfo }}