<header id="header" class="p-navigation">

  <!-- Google Tag Manager -->
  <script>
    (function(w, d, s, l, i) {
      w[l] = w[l] || [];
      w[l].push({
        'gtm.start': new Date().getTime(),
        event: 'gtm.js'
      });
      var f = d.getElementsByTagName(s)[0];
      var j = d.createElement(s);
      var dl = '';
      if (l != 'dataLayer') {
          dl = '&l=' + l;
      }
      j.async = true;
      j.src = 'https://www.googletagmanager.com/gtm.js?id=' + i + dl;
      f.parentNode.insertBefore(j, f);
    })(window, document, 'script', 'dataLayer', 'GTM-KNX3CJC');
  </script>

  <div class="p-navigation__nav" role="menubar">

    <ul class="p-navigation__links" role="menu">

      <li>
        <a class="p-logo" href="https://{{ product_page }}" aria-current="page">
          <img src="{{ pathto(product_tag,1) }}" alt="Logo" class="p-logo-image">
          <div class="p-logo-text p-heading--4">{{ project }}
          </div>
        </a>
      </li>

      <li class="nav-ubuntu-com">
        <a href="https://{{ product_page }}" class="p-navigation__link">{{ product_page }}</a>
      </li>

      <li>
        <a href="#" class="p-navigation__link nav-more-links">More resources</a>
        <ul class="more-links-dropdown">

          {% if discourse %}
          <li>
            <a href="{{ discourse }}" class="p-navigation__sub-link p-dropdown__link">Discourse</a>
          </li>
          {% endif %}

          {% if mattermost %}
          <li>
            <a href="{{ mattermost }}" class="p-navigation__sub-link p-dropdown__link">Mattermost</a>
          </li>
          {% endif %}

          {% if matrix %}
          <li>
            <a href="{{ matrix }}" class="p-navigation__sub-link p-dropdown__link">Matrix</a>
          </li>
          {% endif %}

          {% if github_url %}
          <li>
            <a href="{{ github_url }}" class="p-navigation__sub-link p-dropdown__link">GitHub</a>
          </li>
          {% endif %}

        </ul>
      </li>

    </ul>
  </div>
</header>
