feat: display toc only when headings + toc=true

This commit is contained in:
Henk Verlinde 2021-09-23 09:13:29 +02:00
parent 093ab045fe
commit 10e50f9403
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{{ if ne .Params.toc false -}} {{ if and (ne .Params.toc false) (ne .TableOfContents "<nav id=\"TableOfContents\"></nav>") -}}
<div class="page-links"> <div class="page-links">
<h3>On this page</h3> <h3>On this page</h3>
{{ .TableOfContents }} {{ .TableOfContents }}
</div> </div>
{{ end -}} {{ end -}}