Add table of content with toc parameter

This commit is contained in:
nemunaire 2024-01-12 18:36:52 +01:00
parent 8e05e71abd
commit 4fac760a5f
1 changed files with 9 additions and 0 deletions

View File

@ -20,6 +20,15 @@
<div class="container">
{{ if .Params.toc }}
<aside>
<header>
<h1>{{ .Title }}</h1>
</header>
{{ .TableOfContents }}
</aside>
{{ end }}
<div>
{{ .Content }}
</div>