Merge pull request #231 from sofixa/toc
add the ability to disable table of contents per-page/post
This commit is contained in:
commit
3e62106bc9
1 changed files with 2 additions and 0 deletions
|
@ -54,8 +54,10 @@
|
|||
|
||||
<div class="post-content">
|
||||
{{ if or .Params.Toc $.Site.Params.Toc }}
|
||||
{{ if ne .Params.Toc false }}
|
||||
<h2>Table of Contents</h2>
|
||||
<aside class="table-of-contents">{{ .TableOfContents }}</aside>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ .Content }}
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue