add site param check
This commit is contained in:
parent
dab37f7e53
commit
b1305f42fa
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@
|
|||
{{ end }}
|
||||
|
||||
<div class="post-content">
|
||||
{{ if .Params.Toc }}
|
||||
{{ if or .Params.Toc $.Site.Params.Toc }}
|
||||
<h2>Table of Contents</h2>
|
||||
<aside class="table-of-contents">{{ .TableOfContents }}</aside>
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in a new issue