{% raw %} {% load wagtailcore_tags wagtailimages_tags %} {% if bannerpages %} {% for bannerpage in bannerpages %}