From 8c1bf402024dcace7fdad8908bad62c3bec59d7e Mon Sep 17 00:00:00 2001 From: meleu Date: Sun, 3 Apr 2022 16:29:10 -0300 Subject: [PATCH] disable ToC if frontmatter has "enableToc: false" --- layouts/_default/single.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index c09f2dcf..3423a0c5 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -22,7 +22,7 @@
  • {{ .LinkTitle | humanize }}
  • {{ end }} - {{ if (and $.Site.Data.config.enableToc (not (.Params.disableToc))) }} + {{ if (and $.Site.Data.config.enableToc (ne .Params.enableToc false)) }}