{% set navPages = collections.all | eleventyNavigation %}
<nav class="nav">
  <ul class="navbar">
    {% for entry in navPages %}
      <li>
        <a class="navlink {% if entry.url == page.url %}navlink--current{% endif %}" href="{{ entry.url }}" {% if entry.url == page.url %} aria-current="page" {% endif %}>
          {{ entry.title }}
        </a>
      </li>
    {% endfor %}
  </ul>
</nav>