#693, Hide ToC aside menu if table of contents is empty

This commit is contained in:
Alex Shpak
2025-07-20 12:47:09 +02:00
parent 81ff5e37d6
commit 92579b2c72
3 changed files with 7 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
{{ return default true (
and
(default .Site.Params.BookToC .Params.BookToC)
(not (eq .TableOfContents "<nav id=\"TableOfContents\"></nav>"))
) }}