Ver Fonte

Post specific togglable TOC (#575)

The default is true.
SalahDin Ahmed há 3 anos atrás
pai
commit
827a940995
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      layouts/_default/single.html

+ 1 - 1
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>