mirror of
https://github.com/thomasjsn/hugo-theme-hello-friend.git
synced 2024-11-15 04:45:08 +01:00
Merge pull request #231 from sofixa/toc
add the ability to disable table of contents per-page/post
This commit is contained in:
commit
3e62106bc9
@ -54,9 +54,11 @@
|
|||||||
|
|
||||||
<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>
|
||||||
{{ if eq .Type $.Site.Params.contentTypeName }}
|
{{ if eq .Type $.Site.Params.contentTypeName }}
|
||||||
|
Loading…
Reference in New Issue
Block a user