From 00220b0d86ca9d15ec3db6e9785d7a1e42a8fe8f Mon Sep 17 00:00:00 2001 From: Henk Verlinde Date: Tue, 21 Jun 2022 12:09:51 +0200 Subject: [PATCH] feat: add support for non-docs sections --- config/_default/params.toml | 3 +++ layouts/partials/header/header.html | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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) -}}