Always render table of contents container (except when hidden)

This commit is contained in:
squidfunk 2022-04-06 09:25:34 +02:00
parent c450d16db6
commit 8264e338fb
2 changed files with 2 additions and 2 deletions

View File

@ -145,7 +145,7 @@
</div> </div>
</div> </div>
{% endif %} {% endif %}
{% if page.toc and not "toc.integrate" in features %} {% if not "toc.integrate" in features %}
{% if page and page.meta and page.meta.hide %} {% if page and page.meta and page.meta.hide %}
{% set hidden = "hidden" if "toc" in page.meta.hide %} {% set hidden = "hidden" if "toc" in page.meta.hide %}
{% endif %} {% endif %}

View File

@ -270,7 +270,7 @@
{% endif %} {% endif %}
<!-- Table of contents --> <!-- Table of contents -->
{% if page.toc and not "toc.integrate" in features %} {% if not "toc.integrate" in features %}
{% if page and page.meta and page.meta.hide %} {% if page and page.meta and page.meta.hide %}
{% set hidden = "hidden" if "toc" in page.meta.hide %} {% set hidden = "hidden" if "toc" in page.meta.hide %}
{% endif %} {% endif %}