{% for batch_items in items | batch(batch_size) %}
{% for item in batch_items %}
{% if "name" in item.content %} {% if subtitles or item.content["subtitles"] %}
{{ item.name }}
{% elif titles or item.content["titles"] %}

{{ item.name }}

{% endif %} {% endif %} {{ item.render() }}
{% endfor %}
{% endfor %}