diff --git a/CHANGELOG.md b/CHANGELOG.md index c72415e6..5fc760eb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ## [Unreleased] +### Fixed + +- Updated date is displayed even when it is the same as published date + ## [2.0.4] - 2022-02-09 ### Changed diff --git a/layouts/partials/article-meta.html b/layouts/partials/article-meta.html index ad3420ab..af02db40 100644 --- a/layouts/partials/article-meta.html +++ b/layouts/partials/article-meta.html @@ -16,7 +16,7 @@ {{ $meta.Add "partials" (slice (partial "meta/date.html" .Date)) }} {{ end }} - {{ if .Params.showDateUpdated | default (.Site.Params.article.showDateUpdated | default false) }} + {{ if and (.Params.showDateUpdated | default (.Site.Params.article.showDateUpdated | default false)) (ne .Date .Lastmod) }} {{ $meta.Add "partials" (slice (partial "meta/date-updated.html" .Lastmod)) }} {{ end }}