diff --git a/layouts/posts/single.html b/layouts/posts/single.html index b6c0c3d..631bb36 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -74,8 +74,21 @@ - {{ if .Site.Params.dateformNumTime }}{{ dateFormat .Site.Params.dateformNumTime .Date.Local }}{{ else }}{{ dateFormat "2006-01-02 15:04 -0700" .Date.Local }}{{ end }} - {{ if .LastMod }} ({{ i18n "lastModified" }}: {{ if .Site.Params.dateformNumTime }}{{ dateFormat .Site.Params.dateformNumTime .LastMod.Local }}{{ else }}{{ dateFormat "2006-01-02 15:04 -0700" .LastMod.Local }}){{ end }} + {{ if .Site.Params.dateformNumTime }} + {{ dateFormat .Site.Params.dateformNumTime .Date.Local }} + {{ else }} + {{ dateFormat "2006-01-02 15:04" .Date.Local }} + {{ end }} + + {{ if .Lastmod }} + {{ if not (eq .Lastmod .Date )}} + {{ if .Site.Params.dateformNumTime }} + ({{ i18n "lastModified" }}: {{ dateFormat .Site.Params.dateformNumTime .Lastmod.Local }}) + {{ else }} + ({{ i18n "lastModified" }}: {{ dateFormat "2006-01-02 15:04" .Lastmod.Local }}) + {{ end }} + {{ end }} + {{ end }}

{{- if .GitInfo }}