Allow page-specific cover settings to win. (#185)

check for front-matter's cover.hidden before global config's
This commit is contained in:
Corban Mailloux 2021-01-22 01:22:00 -05:00 committed by GitHub
parent 042f4e9254
commit 2c67ae9877
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@
</div>
{{- end}}
</header>
{{- $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") }}
<div class="toc">