diff --git a/layouts/partials/post_meta.html b/layouts/partials/post_meta.html index 895393f7..037bab8c 100644 --- a/layouts/partials/post_meta.html +++ b/layouts/partials/post_meta.html @@ -4,7 +4,7 @@ {{- $scratch.Add "meta" (slice (printf "%s" (.Date) (.Date | time.Format (default "January 2, 2006" site.Params.DateFormat)))) }} {{- end }} -{{- if not .Lastmod.IsZero -}} +{{- if and (not .Lastmod.IsZero) (not (eq .Date .Lastmod)) -}} {{- $scratch.Add "meta" (slice (printf "Last updated on %s" (.Lastmod) (.Lastmod | time.Format (default "January 2, 2006" .Site.Params.DateFormat)))) }} {{- end }}