{% if tree_top is undefined %} {% set tree_top = pages|list|first %} {% endif %} {% macro page_w_children(pg, n, depth) %}