{% for block in page.body %} {% if block.block_type == 'heading' %} {{ block.value }} {% else %} {% include_block block %} {% endif %} {% endfor %}