feat: check if image exists before caching optimized version

This commit is contained in:
Cory Dransfeldt 2024-02-04 12:49:23 -08:00
parent cb6b5dbd8e
commit f0f1c0aaab
No known key found for this signature in database
9 changed files with 101 additions and 55 deletions

View file

@ -37,10 +37,11 @@
'lazy'
{%- endif -%}
{%- endcapture -%}
{% capture fallbackIcon %}{% tablericon icon alt %}{% endcapture %}
{% if imageMaxWidth %}
{% image item.image, alt, '', loadingStrategy, imageMaxWidth %}
{% image item.image, alt, '', loadingStrategy, shape, fallbackIcon, imageMaxWidth %}
{% else %}
{% image item.image, alt, '', loadingStrategy %}
{% image item.image, alt, '', loadingStrategy, shape, fallbackIcon, 1248 %}
{% endif %}
</div>
</a>