Merge pull request #2 from dasvh/1-adding-a-table-of-contents

adding a table of contents
This commit is contained in:
dasvh 2023-05-01 08:46:11 +02:00 committed by GitHub
commit b1153e8b89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -2,6 +2,11 @@
<header class="content__header">
<h1>{{ .Title | markdownify }}</h1>
</header>
{{ if .Params.toc }}
<aside>
{{ .TableOfContents }}
</aside>
{{ end }}
<div class="content__body">
{{ .Content }}
</div>

View file

@ -0,0 +1 @@
{{ .Page.TableOfContents }}