{# id, title, url, currentPageId, classes, activeClass #} {% macro LabNavLink(modal, categoryId, currentPageId, loop, level) %} {% if modal.id == categoryId %} {% set activeClass = " is-active" %} {% endif %} {% if modal.id == currentPageId %} {% set activeClass = " is-active" %} {% endif %} {% if level == 'level-1' %} {% set level = " nav__item-level-1" %} {% endif %} {% if modal.children %} {% set parent = " nav__item-parent" %} {% endif %}