disable ToC if enableToc: false

This commit is contained in:
meleu 2022-04-03 16:22:32 -03:00 committed by GitHub
parent efeaf9b49c
commit 8f15c5f8c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 }}