Fix main-article toc if statement postition

This commit is contained in:
Sam 2024-08-07 14:58:19 +01:00
parent 04fcadc4bf
commit 37835808a0
1 changed files with 2 additions and 3 deletions

View File

@ -11,12 +11,11 @@
{{ end }} {{ end }}
</div> </div>
</header> </header>
{{ if .Params.toc }}
<div id="tocWrapper"> <div id="tocWrapper">
<h4>Table of Contents</h4> <h4>Table of Contents</h4>
{{ if .Params.toc }}
<aside>{{.TableOfContents}}</aside> <aside>{{.TableOfContents}}</aside>
{{ end }}
</div> </div>
{{ .Content }} {{ end }} {{ .Content }}
</article> </article>
</div> </div>