{% macro render(nav_item, path, level) %} {% set class = "md-nav__item" %} {% if nav_item.active %} {% set class = class ~ " md-nav__item--active" %} {% endif %} {% if nav_item.children %} {% if "navigation.sections" in features and level == 1 + ( "navigation.tabs" in features ) %} {% set class = class ~ " md-nav__item--section" %} {% endif %}