62e9e07d15
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.
6 lines
161 B
HTML
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>"))
|
|
-}}
|