make disableTOC globally available via Site-Params in config.toml

This commit is contained in:
Andreas H 2021-11-03 10:39:48 +01:00
parent a25243d7e7
commit c29b62f3a9
2 changed files with 2 additions and 1 deletions

View file

@ -14,6 +14,7 @@ relativeURLs = true
author = "Sören Weber"
showVisitedLinks = true
disableBreadcrumb = false
disableTOC = false
disableNextPrev = false
disableLandingPageButton = true
disableMermaid = false

View file

@ -55,7 +55,7 @@
</div>
{{- end }}
{{- end }}
{{- $toc := (and (not .Params.disableToc) (not .Params.chapter)) }}
{{- $toc := (and (not .Params.disableToc) (not .Site.Params.disableToc) (not .Params.chapter)) }}
<div id="breadcrumbs">
<span id="sidebar-toggle-span">
<a href="#" id="sidebar-toggle" data-sidebar-toggle="">