Corrects logic for enabling ToC

This commit is contained in:
Philip Mallegol-Hansen 2024-04-30 22:46:39 -07:00
parent f9b293c17d
commit 7484d058f2
No known key found for this signature in database

View File

@ -1,9 +1,8 @@
{{ $toc := and ($.Site.Params.toc) (ge .WordCount $.Site.Params.tocWordCount) }} {{ $toc := true }}
{{ if isset .Params "toc" }} {{ if isset .Site.Params "toc" }}
{{ $toc = .Params.toc }} {{ $toc = .Site.Params.toc }}
{{ else }}
{{ $toc = true }}
{{ end }} {{ end }}
{{ $toc = and ($toc) (ge .WordCount .Site.Params.tocWordCount) }}
{{ if $toc }} {{ if $toc }}