feat: set Table of Contents per page, not globally

This commit is contained in:
welpo
2023-02-06 16:01:46 +01:00
parent cc93f9fb7f
commit 32d4a9358c
3 changed files with 4 additions and 2 deletions

View File

@@ -119,7 +119,7 @@
{% endif %}
{# Optional table of contents #}
{% if config.extra.toc | default(value=false) %}
{% if page.extra.toc | default(value=false) %}
{% if page.toc %}
<h2>Table of Contents</h2>
<ul>