diff --git a/layouts/partials/article-meta.html b/layouts/partials/article-meta.html index 6e6f2e3e..0718f513 100644 --- a/layouts/partials/article-meta.html +++ b/layouts/partials/article-meta.html @@ -1,16 +1,16 @@ -{{ if .Site.Params.article.showDate | default true }} +{{ if .Params.showDate | default (.Site.Params.article.showDate | default true) }} {{ end }} {{ if and - (.Site.Params.article.showDate | default true) - (.Site.Params.article.showReadingTime | default true) + (.Params.showDate | default (.Site.Params.article.showDate | default true)) + (.Params.showReadingTime | default (.Site.Params.article.showReadingTime | default true)) (ne .ReadingTime 0) }} · {{ end }} -{{ if and (.Site.Params.article.showReadingTime | default true) (ne .ReadingTime 0) }} +{{ if and (.Params.showReadingTime | default (.Site.Params.article.showReadingTime | default true)) (ne .ReadingTime 0) }} {{ .ReadingTime }} min{{ if gt .ReadingTime 1 }}s{{ end }} diff --git a/layouts/partials/article-pagination.html b/layouts/partials/article-pagination.html index 5f382d94..30457cf4 100644 --- a/layouts/partials/article-pagination.html +++ b/layouts/partials/article-pagination.html @@ -9,7 +9,7 @@ {{ .NextInSection.Title }} - {{ if .Site.Params.article.showDate | default true }} + {{ if .Params.showDate | default (.Site.Params.article.showDate | default true) }}