From 2c67ae98774bb5e1d0fc6539688f9f29899b19cb Mon Sep 17 00:00:00 2001 From: Corban Mailloux Date: Fri, 22 Jan 2021 01:22:00 -0500 Subject: [PATCH] Allow page-specific cover settings to win. (#185) check for front-matter's cover.hidden before global config's --- layouts/_default/single.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index df77d47..84a322b 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -31,7 +31,7 @@ {{- end}} - {{- $isHidden := ((.Site.Params.cover.hidden | default .Site.Params.cover.hiddenInSingle) | default .Params.cover.hidden )}} + {{- $isHidden := .Params.cover.hidden | default .Site.Params.cover.hiddenInSingle | default .Site.Params.cover.hidden}} {{- partial "cover.html" (dict "cxt" . "IsHome" false "isHidden" $isHidden) }} {{- if (.Param "ShowToc") }}