mirror of
https://github.com/thomasjsn/hugo-theme-hello-friend.git
synced 2024-11-24 08:45:07 +01:00
add basic table of contents
This commit is contained in:
parent
4be09e7180
commit
f9e72c9d4c
@ -40,6 +40,10 @@
|
||||
{{ end }}
|
||||
|
||||
<div class="post-content">
|
||||
{{ if .Params.Toc }}
|
||||
<h2>Table of Contents</h2>
|
||||
<aside class="table-of-contents">{{ .TableOfContents }}</aside>
|
||||
{{ end }}
|
||||
{{ .Content }}
|
||||
</div>
|
||||
{{ if eq .Type $.Site.Params.contentTypeName }}
|
||||
|
Loading…
Reference in New Issue
Block a user