<!-- Navigation -->
<nav class="navbar navbar-expand-lg navbar-light fixed-top" id="mainNav">
  <div class="container">
    <a class="navbar-brand js-scroll-trigger" href="#page-top">{{ siteTitle }}</a>
    <button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
      <span class="navbar-toggler-icon"></span>
    </button>
    <div class="collapse navbar-collapse" id="navbarResponsive">
      <ul class="navbar-nav ml-auto">
	{% for item in menu.keys() %}
	{% if menu[item] is mapping %}
	<li class="nav-item dropdown">
          <a class="nav-link dropdown-toggle" href="#" id="{{ item }}" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
            {{ item }}
          </a>
	  <div class="dropdown-menu" aria-labelledby="{{ item }}">
	    {% for subitem in menu[item].keys() %}
	    <a class="dropdown-item" href="{{menu[item][subitem]}}">{{ subitem }}</a>
	    {% endfor %}
	  </div>
	</li>
	{% else %}
        <li class="nav-item">
          <a class="nav-link js-scroll-trigger" href="{{ menu[item] }}"> {{ item }} </a>
        </li>
	{% endif %}
	{% endfor %}
      </ul>
    </div>
  </div>
</nav>
