|
For anyone who might come across this later, I figured out a way to make the TOC conditionally appear by adding an "if" statement to the template:
{% if page.show-toc != false %}
<nav class="toc float-right justify-content-end"> {{ page.document | tocify_asciidoc }}
</nav> {% endif %}
In the front matter of the pages where I don't want the TOC to appear, I use ":page-show-toc: false", and the TOC section does not appear.
|