Replies: 1 comment
-
Like so (added: 10e50f9): {{ if and (ne .Params.toc false) (ne .TableOfContents "<nav id=\"TableOfContents\"></nav>") -}}
<div class="page-links">
<h3>On this page</h3>
{{ .TableOfContents }}
</div>
{{ end -}} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If there are not H1 or H2 in the current page the table of contents is still display.
How to check if TableOfContents has at least one element?
Beta Was this translation helpful? Give feedback.
All reactions