Corrects logic for enabling ToC
This commit is contained in:
parent
f9b293c17d
commit
7484d058f2
1 changed files with 4 additions and 5 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue