<nav>
  <div class="nav-wrapper">
    <ul>
      {% for line in settings.menu %}
      {% set file_name, menu_name = line.items()[0] %}
      {# We test if it's a URI reference or not #}
      {% if ':' in file_name and not file_name.startswith('./') %}
        {% set file_name = file_name %}
      {% elif gallery %}
        {% set file_name = "../"+file_name %}
      {% endif %}
      {% if loop.first %}
      <li><a href={{ file_name }} class=first-item-menu>{{ menu_name  }}</a></li>
      {% else %}
      <li><a href={{ file_name }} class=item-menu>{{ menu_name }}</a></li>
      {% endif %}
      {% endfor %}
    </ul>
  </div>
</nav>
