fix gallery js code

This commit is contained in:
Nuno Coração
2024-01-28 17:06:04 +00:00
parent f481e64411
commit 392e89722d
4 changed files with 8 additions and 3 deletions

View File

@@ -12,7 +12,9 @@
{{ $meta := newScratch }}
{{/* Gather partials for this context */}}
{{ if .Params.showDate | default (.Site.Params.article.showDate | default true) }}
{{ if .Params.showDate | default (.Site.Params.article.showDate | default false) }}
{{ $meta.Add "partials" (slice (partial "meta/date.html" .Date)) }}
{{else if and (eq $scope "single") (.Params.showDateOnlyInArticle | default (.Site.Params.article.showDateOnlyInArticle | default false)) }}
{{ $meta.Add "partials" (slice (partial "meta/date.html" .Date)) }}
{{ end }}