This is my code - where I have to insert this code 'assign max_width'?
<div class="slide__item-image-contain desktop">
{% if block.settings.image != blank %}
{% assign image = block.settings.image %}
{% assign image_widths = '400,600,800,900,1000,1200,1500,1800,2000,2400' %}
{% include 'theme-rias' %}
<img class="slide__image slide__image-desktop lazyload"
src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="
data-src="{{ image_url_pattern }}"
data-widths="[{{ image_widths }}]"
data-aspectratio="{{ image.aspect_ratio }}"
data-sizes="auto"
alt="{{ image.alt | escape }}">
{% if forloop.first %}
<noscript>
<img src="{{ image | img_url: '900x' }}" alt="{{ image.alt | escape }}">
</noscript>
{% endif %}
{% assign height = image.height | plus: 0 %}
{% assign width = image.width | plus: 0 %}
{% assign padding_ratio = height | times: 100 | divided_by: width %}
{% else %}
{% capture current %}{% cycle 1, 2 %}{% endcapture %}
{{ 'lifestyle-' | append: current | placeholder_svg_tag: 'placeholder-svg' }}
{% assign padding_ratio = 40 %}
{% endif %}
</div>
User | Count |
---|---|
551 | |
209 | |
126 | |
79 | |
44 |