removed deprecated conditions in the TOC template

This commit is contained in:
trean
2023-09-12 16:07:32 +02:00
parent 025e4d2e14
commit 314ddb2dea
@@ -4,12 +4,8 @@
{{ $sectionLink := cond .IsSection .RelPermalink .Parent.RelPermalink }}
{{ $subject := site.GetPage $sectionLink }}
<div class="sticky-top">
{{ range $subject.RegularPages }}
{{ if eq .File.UniqueID $currentNode.File.UniqueID }}
<h5 class="tableOfContent__header">Table of contents</h5>
{{ .TableOfContents }}
{{ end }}
{{ end }}
<h5 class="tableOfContent__header">Table of contents</h5>
{{ .TableOfContents }}
<br/>
</div>
</nav>