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

1 adding a table of contents
This commit is contained in:
Joe Roe 2023-05-03 14:50:11 +02:00 committed by GitHub
commit 77a22a3e62
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"> <header class="content__header">
<h1>{{ .Title | markdownify }}</h1> <h1>{{ .Title | markdownify }}</h1>
</header> </header>
{{ if .Params.toc }}
<aside>
{{ .TableOfContents }}
</aside>
{{ end }}
<div class="content__body"> <div class="content__body">
{{ .Content }} {{ .Content }}
</div> </div>

View file

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