diff --git a/config/_default/params.toml b/config/_default/params.toml index e4006f7..5780d96 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -75,6 +75,9 @@ docsRepoSubPath = "" editPage = false lastMod = false +[sections] + sectionNav = ["docs", "guides"] + [options] lazySizes = true clipBoard = true diff --git a/layouts/partials/header/header.html b/layouts/partials/header/header.html index 47b3e10..65744ec 100644 --- a/layouts/partials/header/header.html +++ b/layouts/partials/header/header.html @@ -15,7 +15,7 @@ {{ .Site.Params.Title }} - {{ if eq .Section "docs" -}} + {{ if (in .Site.Params.sections.sectionNav .Section) -}}