<!-- Navigation -->
<nav class="navbar">
  <div class="container">
    <ul class="nav">
      {% for link in site.links %}
        {% if link.url | contains('http') %}
          {% set domain = '' %}
        {% elseif link.url | contains('#') %}
          {% set domain = '' %}
        {% else %}
          {% set domain = base_url_absolute %}
        {% endif %}
        <li>
          <a class="page-scroll" href="{{ domain }}{{ link.url }}" {% if link.url | contains('http') %} target="_blank" {% endif %}>{{ link.title }}</a>
        </li>
      {% endfor %}
    </ul>
  </div>
</nav>
