From c29b62f3a9b009359103861741c5e7ff9282f4f7 Mon Sep 17 00:00:00 2001 From: Andreas H Date: Wed, 3 Nov 2021 10:39:48 +0100 Subject: [PATCH 1/3] make disableTOC globally available via Site-Params in config.toml --- exampleSite/config.toml | 1 + layouts/partials/header.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 46c128f33d..4f4642d3fa 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -14,6 +14,7 @@ relativeURLs = true author = "Sören Weber" showVisitedLinks = true disableBreadcrumb = false + disableTOC = false disableNextPrev = false disableLandingPageButton = true disableMermaid = false diff --git a/layouts/partials/header.html b/layouts/partials/header.html index a156aa4fe4..6e90d138e0 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -55,7 +55,7 @@ {{- end }} {{- end }} - {{- $toc := (and (not .Params.disableToc) (not .Params.chapter)) }} + {{- $toc := (and (not .Params.disableToc) (not .Site.Params.disableToc) (not .Params.chapter)) }}