Skip to content

Commit bdb4bee

Browse files
committed
Remove "On this page" nav for start page
For the start page "On this page" repeats the top-level entries of the full toctree right below. Removing "On this page" here declutters the interface.
1 parent 0cb3c07 commit bdb4bee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/_themes/sphinx13/layout.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ <h3>{{ _('Navigation') }}</h3>
4242
<div class="document">
4343
<div class="sphinxsidebar" role="navigation" aria-label="Main">
4444
{%- include "searchfield.html" %}
45-
{%- if display_toc %}
45+
{%- if display_toc and (pagename != root_doc) %}
4646
<div class="sphinxsidebar-navigation__contents">
4747
<h3>{{ _('On this page') }}</h3>
4848
{{ toc }}

0 commit comments

Comments
 (0)