feat: improved image optimization

This commit is contained in:
Cory Dransfeldt 2024-02-01 10:53:34 -08:00
parent 9e118c83db
commit 0534bc5607
No known key found for this signature in database
10 changed files with 70 additions and 104 deletions

View file

@ -37,7 +37,11 @@
'lazy'
{%- endif -%}
{%- endcapture -%}
{% image item.image, alt, 'item__image', loadingStrategy %}
{% if imageMaxWidth %}
{% image item.image, alt, '', loadingStrategy, imageMaxWidth %}
{% else %}
{% image item.image, alt, '', loadingStrategy %}
{% endif %}
</div>
</a>
{% endfor %}