added .TableOfContents variable to the single.html
This commit is contained in:
parent
e539254153
commit
185724ddbb
1 changed files with 5 additions and 0 deletions
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue