From 8f15c5f8c1a0650d3c757f8cdf8ea12e4128ee97 Mon Sep 17 00:00:00 2001
From: meleu <meleu@users.noreply.github.com>
Date: Sun, 03 Apr 2022 19:22:32 +0000
Subject: [PATCH] disable ToC if enableToc: false
---
layouts/index.html | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/layouts/index.html b/layouts/index.html
index d449c27..6fb75f9 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -13,7 +13,7 @@
{{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 }}
--
Gitblit v1.10.0