disable ToC if enableToc: false
This commit is contained in:
parent
320a377262
commit
4ea7d0c32d
@ -13,7 +13,7 @@
|
||||
{{partial "darkmode.html" .}}
|
||||
</header>
|
||||
<article>
|
||||
{{ if (and $.Site.Data.config.enableToc (not (.Params.disableToc))) }}
|
||||
{{ if (and $.Site.Data.config.enableToc (ne .Params.enableToc false)) }}
|
||||
<aside class="mainTOC">
|
||||
<h3>Table of Contents</h3>
|
||||
{{ .TableOfContents }}
|
||||
|
Loading…
Reference in New Issue
Block a user