diff --git a/agaric/templates/components/slide.html.twig b/agaric/templates/components/slide.html.twig index 460670c..e69defe 100644 --- a/agaric/templates/components/slide.html.twig +++ b/agaric/templates/components/slide.html.twig @@ -1,4 +1,4 @@ - +
{{ image }}
diff --git a/agaric/templates/paragraph/paragraph--slide.html.twig b/agaric/templates/paragraph/paragraph--slide.html.twig index c813797..a40247e 100644 --- a/agaric/templates/paragraph/paragraph--slide.html.twig +++ b/agaric/templates/paragraph/paragraph--slide.html.twig @@ -1,12 +1,8 @@ -{% set item_attributes = create_attribute().addClass(item_classes) %} -{% import "@bulma/macros/renderables.html.twig" as renderables %} -{% set link = renderables.merge_attributes(item_attributes, content.field_link, 0) %} {# Include slide component template. #} {% include '@agaric/components/slide.html.twig' with { - classes: classes, - image_url: content.field_image[0]['#markup'], + image: content.field_image, text: content.field_text, - link: link, + url: content.field_link, } only %}