mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-10-27 14:26:08 +00:00
avoid showing incorrect lastmod "0001-01-01"
This commit is contained in:
1 parent
580f36f0de
commit
9e5d3f7758
1 file changed
+2
-2
@@ -19,7 +19,7 @@
|
||||
{{ end }}
|
||||
|
||||
{{ if and (.Params.showDateUpdated | default (.Site.Params.article.showDateUpdated | default false)) (ne (partial
|
||||
"functions/date.html" .Date) (partial "functions/date.html" .Lastmod)) }}
|
||||
"functions/date.html" .Date) (partial "functions/date.html" .Lastmod)) (gt (.Lastmod | time.Format "2006") 1) }}
|
||||
{{ $meta.Add "partials" (slice (partial "meta/date-updated.html" .Lastmod)) }}
|
||||
{{ end }}
|
||||
|
||||
@@ -96,4 +96,4 @@
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
Reference in new issue
Block a user