{# MACRO FOR PAGE-TOC PLUGIN SUPPORT #} {% macro toc_loop(items) %} {% import _self as toc_macros %} {% for item in items %} {% set class = loop.first ? 'first' : loop.last ? 'last' : null %}
  • {{ item.label }} {% if item.children|length > 0 %} {% endif %}
  • {% endfor %} {% endmacro %} {# MACRO FOR TOP MENU NAVIGATION #} {% macro nav_loop(page) %} {% import _self as nav_macros %} {% for p in page.children.visible %} {% set active_page = (p.active or p.activeChild) ? 'active' : '' %} {% set has_visible_children = p.children.visible.count > 0 %}
  • {% if p.header.icon %} {% endif %} {{ p.menu }} {% if has_visible_children %} {% endif %} {% if has_visible_children %} {% endif %}
  • {% endfor %} {% endmacro %}