diff --git a/layouts/posts/single.html b/layouts/posts/single.html index dbe0856b..1c717c51 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -48,11 +48,13 @@ {{- printf `` . . | safeHTML -}}   {{- end -}} - {{- with .Lastmod | dateFormat (.Site.Params.dateformat | default "2006-01-02") -}} - - {{- dict "Class" "fa-regular fa-edit fa-fw me-1" | partial "plugin/icon.html" -}} - {{- printf `` . . | safeHTML -}} -   + {{- if ne .Lastmod.Unix .PublishDate.Unix }} + {{- with .Lastmod | dateFormat (.Site.Params.dateformat | default "2006-01-02") -}} + + {{- dict "Class" "fa-regular fa-edit fa-fw me-1" | partial "plugin/icon.html" -}} + {{- printf `` . . | safeHTML -}} +   + {{- end -}} {{- end -}} {{- if $params.wordCount -}}