update: "toc" defaults to "true"
This commit is contained in:
parent
e57e3dd83d
commit
87172dbdfc
@ -1,6 +1,8 @@
|
|||||||
{{ $toc := and ($.Site.Params.toc) (ge .WordCount $.Site.Params.tocWordCount) }}
|
{{ $toc := and ($.Site.Params.toc) (ge .WordCount $.Site.Params.tocWordCount) }}
|
||||||
{{ if isset .Params "toc" }}
|
{{ if isset .Params "toc" }}
|
||||||
{{ $toc = .Params.toc }}
|
{{ $toc = .Params.toc }}
|
||||||
|
{{ else }}
|
||||||
|
{{ $toc = true }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user