mirror of
https://github.com/thomasjsn/hugo-theme-hello-friend.git
synced 2024-11-14 12:25:07 +01:00
add site param check
This commit is contained in:
parent
dab37f7e53
commit
b1305f42fa
@ -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 New Issue
Block a user