From 93019d81d9e0e4bd927064c6709b3775f7fa296e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Tr=C3=A4nklein?= Date: Wed, 7 Aug 2019 19:13:20 +0200 Subject: [PATCH] feat(timberDynamicResize): use in all components --- Components/BlockImageTextCta/index.twig | 12 ++++---- Components/BlockTextImageCrop/index.twig | 8 ++--- Components/GridDownloadPortrait/index.twig | 8 ++--- Components/GridImageText/index.twig | 16 +++++----- Components/GridPostsArchive/index.twig | 10 +++---- Components/GridPostsLatest/index.twig | 16 +++++----- Components/GridPostsSlider/index.twig | 10 +++---- Components/GridPostsTeaser/index.twig | 16 +++++----- Components/GridTeaserTiles/index.twig | 8 ++--- Components/HeroImageCta/index.twig | 30 +++++++++---------- Components/HeroImageText/index.twig | 16 +++++----- .../ListLogos/Partials/Image/index.twig | 16 +++++----- Components/SliderImageGallery/index.twig | 22 +++++++------- Components/SliderImages/index.twig | 12 ++++---- Components/SliderImagesCentered/index.twig | 10 +++---- 15 files changed, 105 insertions(+), 105 deletions(-) diff --git a/Components/BlockImageTextCta/index.twig b/Components/BlockImageTextCta/index.twig index ec16198e3..50536c007 100644 --- a/Components/BlockImageTextCta/index.twig +++ b/Components/BlockImageTextCta/index.twig @@ -7,14 +7,14 @@
{{ image.alt|e }} {% if image.caption %} diff --git a/Components/BlockTextImageCrop/index.twig b/Components/BlockTextImageCrop/index.twig index 3443864f5..77c1091e1 100644 --- a/Components/BlockTextImageCrop/index.twig +++ b/Components/BlockTextImageCrop/index.twig @@ -3,12 +3,12 @@
{{ image.alt|e }} {% if image.caption %} diff --git a/Components/GridDownloadPortrait/index.twig b/Components/GridDownloadPortrait/index.twig index 7741c1514..91c0904ef 100644 --- a/Components/GridDownloadPortrait/index.twig +++ b/Components/GridDownloadPortrait/index.twig @@ -27,11 +27,11 @@ {{ item.image.alt|e }} {% endif %} diff --git a/Components/GridImageText/index.twig b/Components/GridImageText/index.twig index edffd7cc3..d6a1b10d2 100644 --- a/Components/GridImageText/index.twig +++ b/Components/GridImageText/index.twig @@ -10,16 +10,16 @@
  • {{ item.image.alt|e }} {% if item.contentHtml %} diff --git a/Components/GridPostsArchive/index.twig b/Components/GridPostsArchive/index.twig index 6dbedc594..66fdb6938 100644 --- a/Components/GridPostsArchive/index.twig +++ b/Components/GridPostsArchive/index.twig @@ -16,13 +16,13 @@ {% if post.thumbnail %}
    {{ post.thumbnail.alt|e }}
    diff --git a/Components/GridPostsLatest/index.twig b/Components/GridPostsLatest/index.twig index eda65105b..b9138c3a8 100644 --- a/Components/GridPostsLatest/index.twig +++ b/Components/GridPostsLatest/index.twig @@ -12,16 +12,16 @@
  • {{ item.thumbnail.alt|e }}
    diff --git a/Components/GridTeaserTiles/index.twig b/Components/GridTeaserTiles/index.twig index 5b5b6f6dc..2fc15ea5b 100644 --- a/Components/GridTeaserTiles/index.twig +++ b/Components/GridTeaserTiles/index.twig @@ -11,11 +11,11 @@ {{ item.image.alt|e }} diff --git a/Components/HeroImageCta/index.twig b/Components/HeroImageCta/index.twig index 51fef848a..ce713e9e0 100644 --- a/Components/HeroImageCta/index.twig +++ b/Components/HeroImageCta/index.twig @@ -6,11 +6,11 @@ {% if images.imageMobile %} {{ images.imageDesktop.alt|e }} {% else %} @@ -32,13 +32,13 @@ {{ options.alignImage.desktop.vertical }} {{ options.alignImage.desktop.horizontal }}" srcset=" - {{ images.imageDesktop.src | resize(2560) }} 2560w, - {{ images.imageDesktop.src | resize(2048) }} 2048w, - {{ images.imageDesktop.src | resize(1320) }} 1320w, - {{ images.imageDesktop.src | resize(1024) }} 1024w, - {{ images.imageDesktop.src | resize(768) }} 768w, - {{ images.imageDesktop.src | resize(375) }} 375w" - src="{{ images.imageDesktop.src | resize(375) }}" + {{ images.imageDesktop.src | resizeDynamic(2560) }} 2560w, + {{ images.imageDesktop.src | resizeDynamic(2048) }} 2048w, + {{ images.imageDesktop.src | resizeDynamic(1320) }} 1320w, + {{ images.imageDesktop.src | resizeDynamic(1024) }} 1024w, + {{ images.imageDesktop.src | resizeDynamic(768) }} 768w, + {{ images.imageDesktop.src | resizeDynamic(375) }} 375w" + src="{{ images.imageDesktop.src | resizeDynamic(375) }}" data-sizes="auto" alt="{{ images.imageDesktop.alt|e }}"> {% endif %} diff --git a/Components/HeroImageText/index.twig b/Components/HeroImageText/index.twig index 757c27d2f..c6e1530d9 100644 --- a/Components/HeroImageText/index.twig +++ b/Components/HeroImageText/index.twig @@ -1,17 +1,17 @@
    {{ images.imageDesktop.alt|e }} diff --git a/Components/ListLogos/Partials/Image/index.twig b/Components/ListLogos/Partials/Image/index.twig index 24ec4ce15..506f16b27 100644 --- a/Components/ListLogos/Partials/Image/index.twig +++ b/Components/ListLogos/Partials/Image/index.twig @@ -1,16 +1,16 @@
    {% if not image.svg %} {{ image.alt|e }} {% else %} diff --git a/Components/SliderImageGallery/index.twig b/Components/SliderImageGallery/index.twig index 4c11af552..baba5c6cf 100644 --- a/Components/SliderImageGallery/index.twig +++ b/Components/SliderImageGallery/index.twig @@ -11,16 +11,16 @@
    {{ image.alt|e }} {% if image.caption %} @@ -44,10 +44,10 @@
    {{ image.alt|e }}
    diff --git a/Components/SliderImages/index.twig b/Components/SliderImages/index.twig index 3bfde2907..d746d8ef4 100644 --- a/Components/SliderImages/index.twig +++ b/Components/SliderImages/index.twig @@ -12,14 +12,14 @@
    {{ image.alt|e }} {% if image.caption %} diff --git a/Components/SliderImagesCentered/index.twig b/Components/SliderImagesCentered/index.twig index e4c197f85..9705b7279 100644 --- a/Components/SliderImagesCentered/index.twig +++ b/Components/SliderImagesCentered/index.twig @@ -13,13 +13,13 @@
    {{ image.alt|e }} {% if image.caption %}