macros.html.twig 303 B

12345678
  1. {% macro nav_loop(page) %}
  2. {% import _self as macros %}
  3. {% for p in page.children.visible if p.template == 'default' %}
  4. {% set active_page = (p.active or p.activeChild) ? ' class="active"' : '' %}
  5. {% include 'default.html.twig' with {blog: page, page: p} %}
  6. {% endfor %}
  7. {% endmacro %}