Add table of content with toc parameter

This commit is contained in:
Pierre-Olivier Mercier 2024-01-12 18:36:52 +01:00
parent 8e05e71abd
commit 4fac760a5f

View File

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