added .TableOfContents variable to the single.html

This commit is contained in:
dasvh 2023-05-01 06:37:15 +00:00
parent e539254153
commit 185724ddbb

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>