Post specific togglable TOC

The default is true.
This commit is contained in:
SalahDin Ahmed 2022-04-01 23:27:09 +03:00 committed by GitHub
parent f6440e69d5
commit 50a36f98aa
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>