From 87172dbdfce6fe746d65ec8e0aa4b78a10778072 Mon Sep 17 00:00:00 2001 From: Junyi Hou Date: Fri, 26 Apr 2024 12:31:17 +0800 Subject: [PATCH] update: "toc" defaults to "true" --- layouts/partials/toc.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/layouts/partials/toc.html b/layouts/partials/toc.html index 429c9ee..2656c6d 100644 --- a/layouts/partials/toc.html +++ b/layouts/partials/toc.html @@ -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 }}