mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-12-22 17:15:07 +01:00
Allow page-specific cover settings to win. (#185)
check for front-matter's cover.hidden before global config's
This commit is contained in:
parent
042f4e9254
commit
2c67ae9877
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user