Skip to content

Commit 8264e33

Browse files
committed
Always render table of contents container (except when hidden)
1 parent c450d16 commit 8264e33

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

material/base.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@
145145
</div>
146146
</div>
147147
{% endif %}
148-
{% if page.toc and not "toc.integrate" in features %}
148+
{% if not "toc.integrate" in features %}
149149
{% if page and page.meta and page.meta.hide %}
150150
{% set hidden = "hidden" if "toc" in page.meta.hide %}
151151
{% endif %}

src/base.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@
270270
{% endif %}
271271

272272
<!-- Table of contents -->
273-
{% if page.toc and not "toc.integrate" in features %}
273+
{% if not "toc.integrate" in features %}
274274
{% if page and page.meta and page.meta.hide %}
275275
{% set hidden = "hidden" if "toc" in page.meta.hide %}
276276
{% endif %}

0 commit comments

Comments
 (0)