Make sure ToC is showed in terms, set bookToC to be none by default

This commit is contained in:
Alex Shpak
2025-09-10 06:43:58 +02:00
parent ac32260c64
commit 3d55d45223
6 changed files with 25 additions and 22 deletions
+3 -3
View File
@@ -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)
}}