feat: eleventy transform for images

This commit is contained in:
Cory Dransfeldt 2024-02-13 15:28:28 -08:00
parent 243b1103e4
commit 7e1597b36a
No known key found for this signature in database
36 changed files with 179 additions and 1262 deletions

View file

@ -37,12 +37,7 @@
'lazy'
{%- endif -%}
{%- endcapture -%}
{% capture fallbackIcon %}{% tablericon icon alt %}{% endcapture %}
{% if imageMaxWidth %}
{% image item.image, alt, '', loadingStrategy, shape, fallbackIcon, imageMaxWidth %}
{% else %}
{% image item.image, alt, '', loadingStrategy, shape, fallbackIcon, 1248 %}
{% endif %}
<img src="{{ item.image }}" alt="{{ alt }}" loading="{{ loadingStrategy }}" />
</div>
</a>
{% endfor %}