diff --git a/agaric/templates/paragraph/paragraph.html.twig b/agaric/templates/paragraph/paragraph.html.twig index 1ea4f0c..e969bfa 100644 --- a/agaric/templates/paragraph/paragraph.html.twig +++ b/agaric/templates/paragraph/paragraph.html.twig @@ -53,10 +53,10 @@ {% for style in paragraph.field_style_classes %} {% set styles = styles|merge([style.value]) %} {% endfor %} - {% set classes = classes|merge([ 'hero', 'section-restitch' ]) %} - {% set classes = classes|merge(styles) %} - {% set attributes = attributes.removeClass('section').addClass(classes).setAttribute('data-headerbg', 'light') %} -
+ {% set section_classes = [ 'hero', 'section-restitch' ] %} + {% set section_classes = section_classes|merge(styles) %} + {% set section_attributes = create_attribute().addClass(section_classes).setAttribute('data-headerbg', 'light') %} +
{% endif %} {% block paragraph %}