Corrects logic for enabling ToC
This commit is contained in:
parent
f9b293c17d
commit
7484d058f2
@ -1,9 +1,8 @@
|
||||
{{ $toc := and ($.Site.Params.toc) (ge .WordCount $.Site.Params.tocWordCount) }}
|
||||
{{ if isset .Params "toc" }}
|
||||
{{ $toc = .Params.toc }}
|
||||
{{ else }}
|
||||
{{ $toc = true }}
|
||||
{{ $toc := true }}
|
||||
{{ if isset .Site.Params "toc" }}
|
||||
{{ $toc = .Site.Params.toc }}
|
||||
{{ end }}
|
||||
{{ $toc = and ($toc) (ge .WordCount .Site.Params.tocWordCount) }}
|
||||
|
||||
|
||||
{{ if $toc }}
|
||||
|
Loading…
Reference in New Issue
Block a user