Skip to content

Commit

Permalink
Post specific togglable TOC (#575)
Browse files Browse the repository at this point in the history
The default is true.
  • Loading branch information
SalahDin Ahmed authored Apr 4, 2022
1 parent f6440e6 commit 827a940
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ <h1>{{ .Page.Title }}</h1>

{{ 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>
Expand Down

0 comments on commit 827a940

Please sign in to comment.