chore: image improvements

This commit is contained in:
Cory Dransfeldt 2024-09-12 17:28:09 -07:00
parent 9c3d8e213a
commit 7dde72d1cb
No known key found for this signature in database
15 changed files with 138 additions and 164 deletions

View file

@ -1,19 +1,17 @@
<img
srcset="
https://cdn.coryd.dev/{{ image }}?class=bannersm 256w,
https://cdn.coryd.dev/{{ image }}?class=bannermd 512w,
https://cdn.coryd.dev/{{ image }}?class=bannerbase 1024w,
https://cdn.coryd.dev/{{ image }}?class=bannerlg 2048w
https://cdn.coryd.dev/{{ image }}?class=bannersm&type=webp 256w,
https://cdn.coryd.dev/{{ image }}?class=bannermd&type=webp 512w,
https://cdn.coryd.dev/{{ image }}?class=bannerbase&type=webp 1024w
"
sizes="(max-width: 450px) 256px,
(max-width: 850px) 512px,
(max-width: 1000px) 1024px,
2048px"
src="https://cdn.coryd.dev/{{ image }}?class=bannerlg"
(max-width: 850px) 512px
1024px"
src="https://cdn.coryd.dev/{{ image }}?class=bannersm&type=webp"
alt="{{ alt }}"
class="image-banner"
loading="eager"
loading="lazy"
decoding="async"
width="1080"
height="720"
width="720"
height="480"
/>