Merge pull request #44 from Hanse00/main
This commit is contained in:
commit
d27aa62d9e
@ -1,8 +1,11 @@
|
||||
{{ $toc := and ($.Site.Params.toc) (ge .WordCount $.Site.Params.tocWordCount) }}
|
||||
{{ $toc := true }}
|
||||
{{ if isset .Params "toc" }}
|
||||
{{ $toc = .Params.toc }}
|
||||
{{ else }}
|
||||
{{ $toc = true }}
|
||||
{{ $toc = ge .WordCount .Site.Params.tocWordCount }}
|
||||
{{ if and (isset .Site.Params "toc") (not (.Site.Params.toc)) }}
|
||||
{{ $toc = false }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user