Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/hossainemruz/toha.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSalahDin Ahmed <salatrod@gmail.com>2022-04-04 06:20:48 +0300
committerGitHub <noreply@github.com>2022-04-04 06:20:48 +0300
commit827a9409952e0e4192e9894708576bf41dc80dc6 (patch)
tree99adb065eee0075c7e4563791475f764ae151e11
parentf6440e69d56379b0f6ba5d7e9046ab1ee967f735 (diff)
Post specific togglable TOC (#575)
The default is true.
-rw-r--r--layouts/_default/single.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 72ec18c..6e16994 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -179,7 +179,7 @@
{{ define "toc" }}
<section class="toc-section" id="toc-section">
- {{ if site.Params.enableTOC }}
+ {{ if and site.Params.enableTOC ( .Params.enableTOC | default true ) }}
<div class="toc-holder">
<h5 class="text-center pl-3">{{ i18n "toc_heading" }}</h5>
<hr>