add site param check

This commit is contained in:
Adam Ormsby 2020-05-26 18:48:26 -05:00
parent dab37f7e53
commit b1305f42fa

View File

@ -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 }}