{% if tree_top is undefined %} {% set tree_top = pages|list|first %} {% endif %} {% macro page_w_children(pg, n) %} {% if pg.is_ancestor_of(currentpage.html) %} {% set active_parent=True %} {% else %} {% set active_parent=False %} {% endif %}
{% endmacro %}