{%- if nav_bar_tabs and pagename != 'index' %}
  <nav class="md-tabs" data-md-component="tabs">
    <div class="md-tabs__inner md-grid">
      <ul class="md-tabs__list">
        {%- block rootrellink %}
          {%- if theme_master_doc %}
          <li class="md-tabs__item">
            <a href="{{ pathto(master_doc)|e }}" class="md-tabs__link">
              {{ shorttitle }}
              <span class="material-icons md-tabs__arrow">&#xEAC9;</span>
            </a>
          </li>
          {%- endif %}
        {%- endblock %}
        {#- DO NOT SUPPORT THEME NAV LINKS HERE #}
        {%- for parent in parents %}
          <li class="md-tabs__item">
            <a href="{{ parent.link|e }}" class="md-tabs__link">
              {{ parent.title }}
              <span class="material-icons md-tabs__arrow">&#xEAC9;</span>
            </a>
          </li>
        {%- endfor %}
        <li class="md-tabs__item"><a href="#" class="md-tabs__link">{{ title|striptags|e }}</a></li>
      </ul>
    </div>
  </nav>
{%- endif %}
