Skip to content

Commit

Permalink
🐛 Fix article update date not using formatted values
Browse files Browse the repository at this point in the history
Fixes #259
  • Loading branch information
jpanther committed Aug 18, 2022
1 parent 39f25d9 commit dbe7527
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- Upgrade to Tailwind v3.1.8 ([#265](https://github.com/jpanther/congo/pull/265))
- Upgrade to Mermaid v9.1.5 ([#272](https://github.com/jpanther/congo/pull/272))

### Fixed

- Article updated date logic doesn't consider formatted date values ([#259](https://github.com/jpanther/congo/issues/259))

## [2.3.1] - 2022-07-30

### Added
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/article-meta.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
{{ $meta.Add "partials" (slice (partial "meta/date.html" .Date)) }}
{{ end }}

{{ if and (.Params.showDateUpdated | default (.Site.Params.article.showDateUpdated | default false)) (ne .Date .Lastmod) }}
{{ if and (.Params.showDateUpdated | default (.Site.Params.article.showDateUpdated | default false)) (ne (partial "functions/date.html" .Date) (partial "functions/date.html" .Lastmod)) }}
{{ $meta.Add "partials" (slice (partial "meta/date-updated.html" .Lastmod)) }}
{{ end }}

Expand Down

0 comments on commit dbe7527

Please sign in to comment.