{% if page_in_list %}
{% for block in value.before_cut %}
{% if block.block_type != 'citation' and block.block_type != 'document' %}
{# these blocks a rendered at the end of the page as references #}
{% include_block block with id=block.id %}
{% endif %}
{% endfor %}
{% if value.after_cut %}
{% for block in value.after_cut %}
{% if block.block_type != 'citation' and block.block_type != 'document' %}
{# these blocks a rendered at the end of the page as references #}
{% include_block block with id=block.id after_cut=True %}
{% endif %}
{% endfor %}
{% endif %}
{% else %}
{% for block in value.body %}
{% if block.block_type != 'citation' and block.block_type != 'document' and block.block_type != 'cut' %}
{# these blocks a rendered at the end of the page as references #}
{% include_block block with id=block.id %}
{% endif %}
{% endfor %}
{% endif %}
0 and page_in_list %}class="d-none"{% endif %}>
{% if value.literature %}
References
{% for block in value.literature %}
{% include_block block with id=block.id %}
{% endfor %}
{% endif %}
{% if value.info_meta %}
{% for block in value.info_meta %}
{% include_block block with id=block.id %}
{% endfor %}
{% endif %}
{% if value.modals and not page_in_list %}
{% for block in value.modals %}
{% include_block block with id=block.id modal=True %}
{% endfor %}