{#- The tab's pages, pydata's `sidebar-nav-bs.html` with one change (WP-2021): the heading names the tab. pydata writes "Section Navigation" over every tab, which the ``'s label already tells a screen reader and the column tells everyone else. On a tab's own front page `parents` is empty, and the page is the tab. -#} {% set show_nav_level = meta['html_theme.show_nav_level'] if (meta is defined and meta is not none and 'html_theme.show_nav_level' in meta) else theme_show_nav_level %} {{ parents[0].title if parents else title }} {{- generate_toctree_html( "sidebar", show_nav_level=show_nav_level | int, maxdepth=theme_navigation_depth | int, collapse=theme_collapse_navigation | tobool, includehidden=theme_sidebar_includehidden | tobool, titles_only=True ) -}}
{{ parents[0].title if parents else title }}