From 8264e338fbc49d518c90d23436bb5f746fc97c43 Mon Sep 17 00:00:00 2001 From: squidfunk Date: Wed, 6 Apr 2022 09:25:34 +0200 Subject: [PATCH] Always render table of contents container (except when hidden) --- material/base.html | 2 +- src/base.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/material/base.html b/material/base.html index da4785752..e7811eeca 100644 --- a/material/base.html +++ b/material/base.html @@ -145,7 +145,7 @@ {% 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 %} {% set hidden = "hidden" if "toc" in page.meta.hide %} {% endif %} diff --git a/src/base.html b/src/base.html index b98d8fa06..c02a83bd1 100644 --- a/src/base.html +++ b/src/base.html @@ -270,7 +270,7 @@ {% 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 %} {% set hidden = "hidden" if "toc" in page.meta.hide %} {% endif %}