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",
|
"name": "coryd.dev",
|
||||||
"version": "24.8.0",
|
"version": "24.8.1",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "coryd.dev",
|
"name": "coryd.dev",
|
||||||
"version": "24.8.0",
|
"version": "24.8.1",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@cdransf/api-text": "^1.5.0",
|
"@cdransf/api-text": "^1.5.0",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "coryd.dev",
|
"name": "coryd.dev",
|
||||||
"version": "24.8.0",
|
"version": "24.8.1",
|
||||||
"description": "The source for my personal site. Built using 11ty (and other tools).",
|
"description": "The source for my personal site. Built using 11ty (and other tools).",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -2,18 +2,16 @@
|
||||||
{%- for badge in badges limit: 8 -%}
|
{%- for badge in badges limit: 8 -%}
|
||||||
<a href="{{ badge.url }}">
|
<a href="{{ badge.url }}">
|
||||||
<img srcset="
|
<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=w100&type=webp 100w,
|
||||||
https://cdn.coryd.dev/{{ badge.image }}?class=w200&type=webp 200w
|
https://cdn.coryd.dev/{{ badge.image }}?class=w200&type=webp 200w
|
||||||
" sizes="(max-width: 450px) 88px,
|
" sizes="(max-width: 450px) 88px,
|
||||||
(max-width: 850px) 176px,
|
|
||||||
200px"
|
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 }}"
|
alt="{{ badge.image_alt }}"
|
||||||
loading="lazy"
|
loading="lazy"
|
||||||
decoding="async"
|
decoding="async"
|
||||||
width="50"
|
width="100"
|
||||||
height="18"
|
height="36"
|
||||||
/>
|
/>
|
||||||
</a>
|
</a>
|
||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
|
|
Reference in a new issue