chore: image quality

This commit is contained in:
Cory Dransfeldt 2024-05-01 19:59:25 -07:00
parent 142ae68a3c
commit 6674e4fabf
No known key found for this signature in database
17 changed files with 25 additions and 25 deletions

View file

@ -22,9 +22,9 @@
{%- if loading -%}{{ loading }}{%- else -%}lazy{%- endif -%}
{%- endcapture -%}
{% if shape == 'square' %}
<img src="https://coryd.dev/.netlify/images/?url={{ item.image }}&fit=cover&w=240&h=240&fm=webp&q=70" alt="{{ alt }}" loading="{{ loadingStrategy }}" decoding="async" />
<img src="https://coryd.dev/.netlify/images/?url={{ item.image }}&fit=cover&w=240&h=240&fm=webp&q=65" alt="{{ alt }}" loading="{{ loadingStrategy }}" decoding="async" />
{% else %}
<img src="https://coryd.dev/.netlify/images/?url={{ item.image }}&fit=cover&w=200&h=307&fm=webp&q=70" alt="{{ alt }}" loading="{{ loadingStrategy }}" decoding="async" />
<img src="https://coryd.dev/.netlify/images/?url={{ item.image }}&fit=cover&w=200&h=307&fm=webp&q=65" alt="{{ alt }}" loading="{{ loadingStrategy }}" decoding="async" />
{% endif %}
</div>
</a>