diff options
author | SalahDin Ahmed <salatrod@gmail.com> | 2022-04-04 06:20:48 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-04 06:20:48 +0300 |
commit | 827a9409952e0e4192e9894708576bf41dc80dc6 (patch) | |
tree | 99adb065eee0075c7e4563791475f764ae151e11 | |
parent | f6440e69d56379b0f6ba5d7e9046ab1ee967f735 (diff) |
Post specific togglable TOC (#575)
The default is true.
-rw-r--r-- | layouts/_default/single.html | 2 |
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> |