<div id="navbar" class="{{ theme_navbar_class }} navbar-default {% if theme_navbar_fixed_top|tobool -%} navbar-fixed-top{%- endif -%}">
  <div class="container">
    <div class="navbar-header">
      <!-- .btn-navbar is used as the toggle for collapsed navbar content -->
      <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".nav-collapse">
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      {%- block sidebarlogo %}
      <a href="{{ pathto(master_doc) }}" class="pull-left">
        {%- if logo %}<img src="{{ pathto('_static/' + logo, 1) }}" height="50">{%- endif %}
      </a>
      {%- endblock %}
      <a class="navbar-brand" href="{{ pathto(master_doc) }}">
        <span>
          {% if theme_navbar_title -%}
            {{ theme_navbar_title|e }}
          {%- else -%}
            {{ project|e }}
          {%- endif -%}
        </span>
        <span>{{ release|e }}</span>
      </a>
    </div>
    <div class="collapse navbar-collapse nav-collapse">
      {% block navbarsearch %}
        {% include "navbarsearchbox.html" %}
      {% endblock %}
    </div>
  </div>
</div>
