Thanks for sharing this helpful tip!
If you'd like to see this added to the README for jekyll-asciidoc, feel free to send a PR and I'll merge it.
Best Regards,
-Dan
On Tue, Mar 31, 2020 at 4:12 PM ctargett [via Asciidoctor :: Discussion] <
[hidden email]> wrote:
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.
--