<a href="#" data-activates="mobile-demo" class="button-collapse"><i class="mdi-action-view-headline"></i></a>
<ul class="left hide-on-med-and-down">
    {%- for line in settings.menu -%}
    {% set file_name, menu_name = line.items()[0] %}
    {% if file_name.startswith('http') %}
    {% 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>
<ul class="side-nav" id="mobile-demo">
    {%- for line in settings.menu -%}
    {% set file_name, menu_name = line.items()[0] %}
    {% if file_name.startswith('http') %}
    {% 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>
