🐛 Fix article update date not using formatted values

Fixes #259
This commit is contained in:
James Panther
2022-08-18 15:57:01 +10:00
parent 39f25d9ce6
commit dbe75271ff
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -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 }}