diff --git a/layouts/partials/header.html b/layouts/partials/header.html index ae0fb1c..5b157cf 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -20,18 +20,18 @@ {{ .Site.Title }} - {{ if ne (len (where .Site.RegularPages "Section" "blog")) 0 }} - Blog + {{ if (and (ne (len (where .Site.RegularPages "Section" "blog")) 0) (not (in .Site.Params.exclude_headings "blog"))) }} + Blog {{ end }} {{ range $.Site.Home.Sections }} {{ range first 1 (where .Pages "Section" "ne" "")}} - {{ if ne .Section "blog"}} + {{ if (and (ne .Section "blog") (not (in .Site.Params.exclude_headings (lower .Section))))}} {{ .Section }} {{ end }} {{ end }} {{ end }} {{ range where .Site.RegularPages "Section" ""}} - {{ if and (ne .Title "License") (ne .Title "Home")}} + {{ if (and (and (ne .Title "License") (ne .Title "Home")) (not (in .Site.Params.exclude_headings (lower .Title))))}} {{ .Title }} {{ end }} {{ end }}