Add table of content with toc parameter
This commit is contained in:
parent
8e05e71abd
commit
4fac760a5f
@ -20,6 +20,15 @@
|
||||
|
||||
<div class="container">
|
||||
|
||||
{{ if .Params.toc }}
|
||||
<aside>
|
||||
<header>
|
||||
<h1>{{ .Title }}</h1>
|
||||
</header>
|
||||
{{ .TableOfContents }}
|
||||
</aside>
|
||||
{{ end }}
|
||||
|
||||
<div>
|
||||
{{ .Content }}
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user