update: "toc" defaults to "true"
This commit is contained in:
parent
e57e3dd83d
commit
87172dbdfc
1 changed files with 2 additions and 0 deletions
|
@ -1,6 +1,8 @@
|
|||
{{ $toc := and ($.Site.Params.toc) (ge .WordCount $.Site.Params.tocWordCount) }}
|
||||
{{ if isset .Params "toc" }}
|
||||
{{ $toc = .Params.toc }}
|
||||
{{ else }}
|
||||
{{ $toc = true }}
|
||||
{{ end }}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue