update: "toc" defaults to "true"

This commit is contained in:
Junyi Hou 2024-04-26 12:31:17 +08:00
parent e57e3dd83d
commit 87172dbdfc

View File

@ -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 }}