diff --git a/sections/collage.liquid b/sections/collage.liquid index e9f3392a409..972b4e69f6e 100644 --- a/sections/collage.liquid +++ b/sections/collage.liquid @@ -30,22 +30,13 @@
{%- if block.settings.image != blank -%} - {{ block.settings.image.alt | escape }} + {%- capture sizes -%}(min-width: {{ settings.page_width }}px) {% if section.blocks.size == 1 %}calc({{ settings.page_width }}px - 100px){% else %}{{ settings.page_width | minus: 100 | times: 0.67 | round }}px{% endif %}, (min-width: 750px){% if section.blocks.size == 1 %} calc(100vw - 100px){% else %} 500px{% endif %}, calc(100vw - 30px)}{%- endcapture -%} + + {{ block.settings.image | image_url: width: 3000 | image_tag: + loading: 'lazy', + sizes: sizes, + widths: '550, 720, 990, 1100, 1500, 2200, 3000' + }} {%- else -%} {{ 'image' | placeholder_svg_tag: 'placeholder-svg placeholder' }} {%- endif -%} @@ -72,22 +63,12 @@
{%- if block.settings.cover_image != blank -%} - {{ block.settings.description | escape }} + {%- capture sizes -%}(min-width: {{ settings.page_width }}px) {% if section.blocks.size == 1 %}calc({{ settings.page_width }}px - 100px){% else %}{{ settings.page_width | minus: 100 | times: 0.67 | round }}px{% endif %}, (min-width: 750px){% if section.blocks.size == 1 %} calc(100vw - 100px){% else %} 500px{% endif %}, calc(100vw - 30px){%- endcapture -%} + {{ block.settings.cover_image | image_url: width: 3000 | image_tag: + loading: 'lazy', + sizes: sizes, + widths: '550, 720, 990, 1100, 1500, 2200, 3000' + }} {%- else -%} {{ 'collection-2' | placeholder_svg_tag: 'placeholder-svg placeholder' }} {%- endif -%} @@ -101,24 +82,14 @@ {%- render 'icon-play' -%} - + {%- if block.settings.cover_image != blank -%} - {{ block.settings.description | escape }} + {%- capture sizes -%}(min-width: {{ settings.page_width }}px) {% if section.blocks.size == 1 %}calc({{ settings.page_width }}px - 100px){% else %}{{ settings.page_width | minus: 100 | times: 0.67 | round }}px{% endif %}, (min-width: 750px){% if section.blocks.size == 1 %} calc(100vw - 100px){% else %} 500px{% endif %}, calc(100vw - 30px){%- endcapture -%} + {{ block.settings.cover_image | image_url: width: 3000 | image_tag: + loading: 'lazy', + sizes: sizes, + widths: '550, 720, 990, 1100, 1500, 2200, 3000' + }} {%- else -%} {{ 'collection-2' | placeholder_svg_tag: 'placeholder-svg placeholder' }} {%- endif -%} diff --git a/sections/collapsible-content.liquid b/sections/collapsible-content.liquid index 67fc1bf5b11..2c7cfd9bcab 100644 --- a/sections/collapsible-content.liquid +++ b/sections/collapsible-content.liquid @@ -35,22 +35,12 @@
- {{ section.settings.image.alt | escape }} + {%- capture sizes -%}(min-width: {{ settings.page_width }}px) {{ settings.page_width | minus: 100 | divided_by: 2 }}px, (min-width: 750px) calc((100vw - 130px) / 2), calc((100vw - 50px) / 2){%- endcapture -%} + {{ section.settings.image | image_url: width: 1500 | image_tag: + loading: 'lazy', + sizes: sizes, + widths: '165, 360, 535, 750, 1070, 1250, 1500' + }}
{% endif %} diff --git a/sections/image-with-text.liquid b/sections/image-with-text.liquid index 55ba89b181a..f90d2db06ad 100644 --- a/sections/image-with-text.liquid +++ b/sections/image-with-text.liquid @@ -21,21 +21,12 @@ {% if section.settings.height == 'adapt' and section.settings.image != blank %} style="padding-bottom: {{ 1 | divided_by: section.settings.image.aspect_ratio | times: 100 }}%;"{% endif %} > {%- if section.settings.image != blank -%} - {{ section.settings.image.alt | escape }} + {%- capture sizes -%}(min-width: {{ settings.page_width }}px) {{ settings.page_width | minus: 100 | divided_by: 2 }}px, (min-width: 750px) calc((100vw - 130px) / 2), calc((100vw - 50px) / 2){%- endcapture -%} + {{ section.settings.image | image_url: width: 1500 | image_tag: + loading: 'lazy', + sizes: sizes, + widths: '165, 360, 535, 750, 1070, 1500' + }} {%- else -%} {{ 'image' | placeholder_svg_tag: 'placeholder-svg' }} {%- endif -%} diff --git a/sections/multicolumn.liquid b/sections/multicolumn.liquid index bd304b6e432..0483f92f308 100644 --- a/sections/multicolumn.liquid +++ b/sections/multicolumn.liquid @@ -55,7 +55,7 @@ {%- assign empty_column = ' multicolumn-list__item--empty' -%} {%- endif -%} -
  • +
  • {%- if block.settings.image != blank -%} {% if section.settings.image_ratio == 'adapt' or section.settings.image_ratio == 'circle' %} @@ -66,22 +66,13 @@ {% if section.settings.image_ratio == 'adapt' %} style="padding-bottom: {{ 1 | divided_by: highest_ratio | times: 100 }}%;" {% endif %}> - {{ block.settings.image.alt }} + {%- capture sizes -%}(min-width: 990px) {% if section.blocks.size <= 2 %}710px{% else %}550px{% endif %}, (min-width: 750px) {% if section.blocks.size == 1 %}710px{% else %}550px{% endif %}, calc(100vw - 30px){%- endcapture -%} + {{ block.settings.image | image_url: width: 1420 | image_tag: + loading: 'lazy', + sizes: sizes, + widths: '275, 550, 710, 1420', + class: 'multicolumn-card__image' + }}
  • {%- endif -%} diff --git a/sections/slideshow.liquid b/sections/slideshow.liquid index 1f4fcce8ef5..fd21a27b9ae 100644 --- a/sections/slideshow.liquid +++ b/sections/slideshow.liquid @@ -91,24 +91,13 @@ >