{%- if theme_sidebar_mode == 'toctree' and theme_display_toc and display_toc %}

{% if theme_display_global_toc_section %}Page {% endif %}Contents

{{ toc }}
{%- endif %}