{% set level = level | default(0) %}
{% for page in pages %}
{% if page.isVisible() and not page.getDocument().getProperty('navigationExclude', false) %}
{% set isActive = page.getActive(true) %}
<li class="simple-nav__item simple-nav__item--level-{{ level }} js-simple-nav__list-item {{ isActive ? 'is-active' : '' }}">
<a href="{{ page.getUri() }}"
class="simple-nav__item-content simple-nav__item-content--level-{{ level }} simple-nav__item-content--link">
{{ page.getLabel() }}
{% if isActive %}
<span class="sr-only">{{ 'sr.current'|trans }}</span>
{% endif %}
</a>
</li>
{% endif %}
{% endfor %}