<header>
  <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
    <div class="container">
      <div class="navbar-header">
        <button type="button" class="navbar-toggle collapsed"
                data-toggle="collapse" data-target="#navbarMainCollapse">
          <span class="sr-only">Interruptor de Navegaci&oacute;n</span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </button>
        <a class="navbar-brand" href="{{ pathto(root_doc)|e }}">
          {%- if logo_url %}
          <img src="{{ logo_url|e }}" width="128" height="48" alt="{{ logo_alt|e }}">
          {% else %}
            {{ project }}
          {%- endif %}
        </a>
      </div>

      <div class="collapse navbar-collapse" id="navbarMainCollapse">
        <ul class="nav navbar-nav navbar-right">
          {%- if theme_github_user %}
          <li>
            <a href="https://github.com/{{ theme_github_user }}/{{ theme_github_repo }}">
              <img alt="{{ theme_repository_site }}"
                   src="{{ pathto('_static/icons/github.svg', resource=True)|e }}">
            </a>
          </li>
          {%- endif %}
          {%- if hasdoc('search') %}
          <li>
            <a href="{{ pathto('search') }}">
              <span class="sr-only">Búsqueda</span>
              <i class="icon-search"></i>
            </a>
          </li>
          {% endif %}
        </ul>
      </div>
    </div>
  </nav>
</header>
