Merge pull request #44 from Hanse00/main

This commit is contained in:
Junyi 2024-05-02 13:04:38 +08:00 committed by GitHub
commit d27aa62d9e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,8 +1,11 @@
{{ $toc := and ($.Site.Params.toc) (ge .WordCount $.Site.Params.tocWordCount) }} {{ $toc := true }}
{{ if isset .Params "toc" }} {{ if isset .Params "toc" }}
{{ $toc = .Params.toc }} {{ $toc = .Params.toc }}
{{ else }} {{ else }}
{{ $toc = true }} {{ $toc = ge .WordCount .Site.Params.tocWordCount }}
{{ if and (isset .Site.Params "toc") (not (.Site.Params.toc)) }}
{{ $toc = false }}
{{ end }}
{{ end }} {{ end }}