- {{ title_prefix }}
- {% if label and not page %}
-
- {% endif %}
+{% include '@opdavies/components/testimonial.html.twig' with {
+ image: {
+ alt: content.field_image.0['#item'].alt,
+ uri: node.field_image|file_uri,
+ },
+ name: label,
+ role: content.field_role.0|render,
+ text: content.body.0|render,
+ url: content.field_url.0['#url']|render,
+} only %}
- {{ title_suffix }}
-
- {% if display_submitted %}
-
- {% endif %}
-
-
- {{ content }}
-
-
+{{ content|without('body', 'field_image', 'field_role', 'field_url', 'field_weight') }}