fix: badge grid
This commit is contained in:
parent
7dde72d1cb
commit
f244d8ed77
3 changed files with 6 additions and 8 deletions
4
package-lock.json
generated
4
package-lock.json
generated
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "coryd.dev",
|
||||
"version": "24.8.0",
|
||||
"version": "24.8.1",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "coryd.dev",
|
||||
"version": "24.8.0",
|
||||
"version": "24.8.1",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@cdransf/api-text": "^1.5.0",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "coryd.dev",
|
||||
"version": "24.8.0",
|
||||
"version": "24.8.1",
|
||||
"description": "The source for my personal site. Built using 11ty (and other tools).",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
|
|
|
@ -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