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"
|
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
|
||||||
|
|
|
@ -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="">
|
||||||
|
|
Loading…
Reference in a new issue