Files
hugo-book/layouts/_partials/docs/toc-show.html
Naty 62e9e07d15 Refactor condition for Table of Contents display (#776)
Fix `bookToC` not responding to `true` or `false` globally (Hugo config) or locally (front matter) by simplifying the logic and making TOC behaviour consistent across all page types.
2025-10-18 01:12:45 +02:00

6 lines
161 B
HTML

{{- return and
(not (eq .Params.bookToC false))
(not (eq .Site.Params.BookToC false))
(not (eq .TableOfContents "<nav id=\"TableOfContents\"></nav>"))
-}}