Change logic on rendering or not ToC
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
{{ return default
|
||||
{{- return or
|
||||
(and (eq .Type "posts") (eq .Kind "section"))
|
||||
(not (eq .TableOfContents "<nav id=\"TableOfContents\"></nav>"))
|
||||
(default .Site.Params.BookToC .Params.BookToC)
|
||||
}}
|
||||
-}}
|
||||
Reference in New Issue
Block a user