mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 01:33:04 +00:00
make disableTOC globally available via Site-Params in config.toml
This commit is contained in:
parent
a25243d7e7
commit
c29b62f3a9
2 changed files with 2 additions and 1 deletions
|
@ -14,6 +14,7 @@ relativeURLs = true
|
|||
author = "Sören Weber"
|
||||
showVisitedLinks = true
|
||||
disableBreadcrumb = false
|
||||
disableTOC = false
|
||||
disableNextPrev = false
|
||||
disableLandingPageButton = true
|
||||
disableMermaid = false
|
||||
|
|
|
@ -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="">
|
||||
|
|
Loading…
Reference in a new issue