toc-show.html: enforce default value true for .Site.Params.BookToc (#755)
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
{{ return default true (
|
{{ return and
|
||||||
and
|
(default .Site.Params.BookToC .Params.BookToC | default true)
|
||||||
(default .Site.Params.BookToC .Params.BookToC)
|
|
||||||
(not (eq .TableOfContents "<nav id=\"TableOfContents\"></nav>"))
|
(not (eq .TableOfContents "<nav id=\"TableOfContents\"></nav>"))
|
||||||
) }}
|
}}
|
||||||
Reference in New Issue
Block a user