From e62d512d95bc52f3113cae5e3763665364fa7c72 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 c09f2dcf2..3423a0c58 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)) }}