mirror of
https://github.com/thomasjsn/hugo-theme-hello-friend.git
synced 2024-11-14 20:35:07 +01:00
add the ability to disable table of contents per-page/post
This commit is contained in:
parent
2c2588d1c6
commit
48d9246368
@ -54,8 +54,10 @@
|
|||||||
|
|
||||||
<div class="post-content">
|
<div class="post-content">
|
||||||
{{ if or .Params.Toc $.Site.Params.Toc }}
|
{{ if or .Params.Toc $.Site.Params.Toc }}
|
||||||
|
{{ if ne .Params.Toc false }}
|
||||||
<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 }}
|
{{ end }}
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user