mirror of
https://github.com/thomasjsn/hugo-theme-hello-friend.git
synced 2024-11-21 23:35:08 +01:00
add site param check
This commit is contained in:
parent
dab37f7e53
commit
b1305f42fa
@ -40,7 +40,7 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<div class="post-content">
|
<div class="post-content">
|
||||||
{{ if .Params.Toc }}
|
{{ if or .Params.Toc $.Site.Params.Toc }}
|
||||||
<h2>Table of Contents</h2>
|
<h2>Table of Contents</h2>
|
||||||
<aside class="table-of-contents">{{ .TableOfContents }}</aside>
|
<aside class="table-of-contents">{{ .TableOfContents }}</aside>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
Loading…
Reference in New Issue
Block a user