{# Custom header.html for pytorch_sphinx_theme2 This completely replaces pydata_sphinx_theme's sections/header.html to inject pytorch-site-link when show_pytorch_org_link is True (default) #} {% if theme_navbar_start or theme_navbar_center or theme_navbar_end or theme_navbar_persistent or theme_show_pytorch_org_link | default(true) %}
{# Mobile logo - shown on small screens next to hamburger menu #} {% set navbar_start, navbar_class, navbar_align = navbar_align_class() %} {% if theme_navbar_start %} {% endif %} {# A search button to show up only on mobile #} {% for navbar_item in theme_navbar_persistent %} {% endfor %} {% if not remove_sidebar_secondary and secondary_sidebar_items %} {% endif %}
{% endif %}