Make sure ToC is showed in terms, set bookToC to be none by default
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{{ return and
|
||||
(default .Site.Params.BookToC .Params.BookToC | default true)
|
||||
(not (eq .TableOfContents "<nav id=\"TableOfContents\"></nav>"))
|
||||
{{ return default
|
||||
(not (eq .TableOfContents "<nav id=\"TableOfContents\"></nav>"))
|
||||
(default .Site.Params.BookToC .Params.BookToC)
|
||||
}}
|
||||
Reference in New Issue
Block a user