{% for block in blocks %} {% set alignmentClass = '' %} {% if block.tunes is defined and block.tunes.anyTuneName is defined and block.tunes.anyTuneName.alignment is defined %} {% set alignmentClass = block.tunes.anyTuneName.alignment == 'left' ? 'text-start' : block.tunes.anyTuneName.alignment == 'center' ? 'text-center' : block.tunes.anyTuneName.alignment == 'right' ? 'text-end' : block.tunes.anyTuneName.alignment == 'justify' ? 'text-start' : '' %} {% endif %} {% if block.type == 'header' %} {{ block.data.text | raw }} {% elseif block.type == 'paragraph' %}

{{ block.data.text | raw }}

{% elseif block.type == 'image' %}
{{ block.data.caption }} {% if block.data.caption %}
{{ block.data.caption }}
{% endif %}
{% elseif block.type == 'list' %} {% if block.data.style == 'ordered' %}
    {% for item in block.data.items %}
  1. {{ item.content | raw }}
  2. {% endfor %}
{% else %} {% endif %} {% elseif block.type == 'table' %} {% if block.data.withHeadings %} {% for header in block.data.content[0] %} {% endfor %} {% for row in block.data.content|slice(1) %} {% for cell in row %} {% endfor %} {% endfor %} {% else %} {% for row in block.data.content %} {% for cell in row %} {% endfor %} {% endfor %} {% endif %}
{{ header | raw }}
{{ cell | raw }}
{{ cell | raw }}
{% endif %} {% endfor %}