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" author = "Sören Weber"
showVisitedLinks = true showVisitedLinks = true
disableBreadcrumb = false disableBreadcrumb = false
disableTOC = false
disableNextPrev = false disableNextPrev = false
disableLandingPageButton = true disableLandingPageButton = true
disableMermaid = false disableMermaid = false

View file

@ -55,7 +55,7 @@
</div> </div>
{{- end }} {{- end }}
{{- 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"> <div id="breadcrumbs">
<span id="sidebar-toggle-span"> <span id="sidebar-toggle-span">
<a href="#" id="sidebar-toggle" data-sidebar-toggle=""> <a href="#" id="sidebar-toggle" data-sidebar-toggle="">