ADD table of contents

This commit is contained in:
Hoernschen 2024-01-09 22:51:52 +01:00
parent c1594f153b
commit 4ab9bdab6e
Signed by: hoernschen
GPG key ID: 37591FAF4E6D3462
5 changed files with 85 additions and 1 deletions

View file

@ -14,6 +14,12 @@
</div>
{{ end }}
<!-- <h6>{{ .Date.Format "Mon, Jan 2, 2006" }}</h6> -->
{{ if gt (.TableOfContents | findRE `<li>` | len) 4}}
<div class="table-of-contents">
{{ .TableOfContents }}
<div class="extend" onclick="toggleTableOfContent(event)"><i class="icon-angle-right"></i></div>
</div>
{{ end }}
{{ .Content }}
</div>
{{ end }}

View file