{% load wagtailcore_tags%} {% load waggylabs_filters %}

{% if value.icon_location == 'end' %} {% else %} {% endif %}

{% for block in value.body %} {% if block.block_type != 'citation' and block.block_type != 'document' %} {% comment %}these blocks a rendedered at the end of the page as references{% endcomment %} {% include_block block with id=block.id %} {% endif %} {% endfor %}