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