{% load wagtailcore_tags wagtailimages_tags %} xxx {% if blocks %} {% for block in blocks %} {% if block.block_type == 'heading' %}