Skip to content

Commit

Permalink
Remove "On this page" nav for start page
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
timhoffm committed Jul 28, 2024
1 parent 0cb3c07 commit bdb4bee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/_themes/sphinx13/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ <h3>{{ _('Navigation') }}</h3>
<div class="document">
<div class="sphinxsidebar" role="navigation" aria-label="Main">
{%- include "searchfield.html" %}
{%- if display_toc %}
{%- if display_toc and (pagename != root_doc) %}
<div class="sphinxsidebar-navigation__contents">
<h3>{{ _('On this page') }}</h3>
{{ toc }}
Expand Down

0 comments on commit bdb4bee

Please sign in to comment.