fix: badge grid
This commit is contained in:
parent
7dde72d1cb
commit
f244d8ed77
3 changed files with 6 additions and 8 deletions
|
@ -2,18 +2,16 @@
|
|||
{%- for badge in badges limit: 8 -%}
|
||||
<a href="{{ badge.url }}">
|
||||
<img srcset="
|
||||
https://cdn.coryd.dev/{{ badge.image }}?class=w50&type=webp 50w,
|
||||
https://cdn.coryd.dev/{{ badge.image }}?class=w100&type=webp 100w,
|
||||
https://cdn.coryd.dev/{{ badge.image }}?class=w200&type=webp 200w
|
||||
" sizes="(max-width: 450px) 88px,
|
||||
(max-width: 850px) 176px,
|
||||
200px"
|
||||
src="https://cdn.coryd.dev/{{ badge.image }}?class=w50&type=webp"
|
||||
src="https://cdn.coryd.dev/{{ badge.image }}?class=w100&type=webp"
|
||||
alt="{{ badge.image_alt }}"
|
||||
loading="lazy"
|
||||
decoding="async"
|
||||
width="50"
|
||||
height="18"
|
||||
width="100"
|
||||
height="36"
|
||||
/>
|
||||
</a>
|
||||
{%- endfor -%}
|
||||
|
|
Reference in a new issue