{% load wagtailcore_tags util_tags %} {% if page.get_ancestors|length > 2 %} {% endif %}