Skip to content

Commit

Permalink
Allow page-specific cover settings to win. (adityatelange#185)
Browse files Browse the repository at this point in the history
check for front-matter's cover.hidden before global config's
  • Loading branch information
corbanmailloux authored Jan 22, 2021
1 parent f8b2ad9 commit 85cd5d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ <h1 class="post-title">
</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">
Expand Down

0 comments on commit 85cd5d6

Please sign in to comment.