{% load design_system_tags wagtailcore_tags %}
{% for subblock in block.value %} {% if subblock.block_type == 'title' %}

{{ subblock.value }}

{% endif %} {% endfor %}
{% for subblock in block.value %} {% if subblock.block_type == 'accordion' %} {% with forloop.counter0|lower as str_counter %} {% with "accordion-"|add:accordions_id|add:"-"|add:str_counter as accordion_id %} {% design_system_accordion id=accordion_id title=subblock.value.title content=subblock.value.content|richtext %} {% endwith %} {% endwith %} {% endif %} {% endfor %}