{% load wagtailcore_tags %} {% for block in page.content %} {% include_block block with first=forloop.first block_id=block.id %} {% endfor %}