diff --git a/sphinx_rtd_theme/layout.html b/sphinx_rtd_theme/layout.html index 3fa593bb..c990a561 100644 --- a/sphinx_rtd_theme/layout.html +++ b/sphinx_rtd_theme/layout.html @@ -102,13 +102,11 @@
{% set toctree = toctree(maxdepth=2, collapse=False) %} - {% if not next and not prev %} - -
{{ toc }}
- {% elif toctree %} + {% if toctree %} {{ toctree }} {% else %} -
{{ toc }}
+ +
{{ toc }}
{% endif %}