ul.nav.nav-list

| {% for item in site.menu %}
li.nav-list-item
    | {% if item.url contains "http://" or item.url contains "https://" %}
    |   {% assign tar = "_blank" %}
    | {% else %}
    |   {% assign tar = "_self" %}
    | {% endif %}
    | {% if page.url == item.url %}
    |   {% assign act = "active" %}
    | {% else %}
    |   {% assign act = "" %}
    | {% endif %}
    a.nav-list-link(class="{{ act }}" href="{{ item.url }}" target="{{ tar }}")
        != "{{ item.title | upcase }}"
| {% endfor %}