    <div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="{{ HOME_PATH }}">
              <img src="/assets/themes/apache/img/logo.png" width="50">
              {{ site.data.project.name }}
            <span class="version">{{ site.data.project.version }}</span>
          </a>
        </div>

          <nav class="navbar-collapse collapse" role="navigation">
              <ul class="nav navbar-nav navbar-right">
                  {% for entry in site.data.navigation.topnav %}
                  <li id="{{ entry.title | slugify }}">
                      {% if entry.subcategories %}
                      <a href="#" data-toggle="dropdown" class="dropdown-toggle">{{ entry.title }}<b class="caret"></b></a>
                      <ul class="dropdown-menu dropdown-left">
                          {% for subitem in entry.subcategories %}
                          {% if subitem.url contains "http" %}
                          {% assign target = "_blank" %}{% else %}
                          {% assign target = "_self" %}{% endif %}
                          <li><a href="{{ subitem.url }}" target="{{ target }}">{{ subitem.title }}</a></li>
                          {% endfor %}
                      </ul>
                      {% else %}
                      {% if entry.url contains "http" %}
                      {% assign target = "_blank" %}{% else %}
                      {% assign target = "_self" %}{% endif %}
                      <a href="{{ entry.url }}" target="{{ target }}">{{ entry.title }}</a>
                      {% endif %}
                  </li>
                  {% endfor %}
              </ul>
          </nav><!--/.navbar-collapse -->

      </div>
    </div>
