mirror of https://github.com/jpanther/congo.git
🩹 Fix `.Lastmod` shown when same as `.Date`
parent
e9f59082de
commit
a041f09f6f
|
@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Updated date is displayed even when it is the same as published date
|
||||||
|
|
||||||
## [2.0.4] - 2022-02-09
|
## [2.0.4] - 2022-02-09
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
{{ $meta.Add "partials" (slice (partial "meta/date.html" .Date)) }}
|
{{ $meta.Add "partials" (slice (partial "meta/date.html" .Date)) }}
|
||||||
{{ end }}
|
{{ 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)) }}
|
{{ $meta.Add "partials" (slice (partial "meta/date-updated.html" .Lastmod)) }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue