From e62d512d95bc52f3113cae5e3763665364fa7c72 Mon Sep 17 00:00:00 2001
From: meleu <meleu.dev@gmail.com>
Date: Sun, 03 Apr 2022 19:29:10 +0000
Subject: [PATCH] disable ToC if frontmatter has "enableToc: false"

---
 layouts/index.html |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/layouts/index.html b/layouts/index.html
index 75b24bf..6fb75f9 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -13,13 +13,13 @@
         {{partial "darkmode.html" .}}
     </header>
     <article>
-        {{ if (and $.Site.Data.config.enableToc (not (.Params.disableToc))) }}
+        {{ if (and $.Site.Data.config.enableToc (ne .Params.enableToc false)) }}
         <aside class="mainTOC">
             <h3>Table of Contents</h3>
             {{ .TableOfContents }}
         </aside>
         {{end}}
-        {{.Content | safeHTML}}
+        {{partial "textprocessing.html" . }}
     </article>
     {{partial "footer.html" .}}
     {{partial "popover.html" .}}

--
Gitblit v1.10.0