Post specific togglable TOC (#575)

The default is true.
This commit is contained in:
SalahDin Ahmed 2022-04-04 06:20:48 +03:00 committed by GitHub
parent f6440e69d5
commit 827a940995
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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>