Skip to content

Commit f4fb9ff

Browse files
committed
seo: apply some good practices
1 parent 10d5f2d commit f4fb9ff

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ dist
1212
# env
1313
.direnv
1414
.envrc
15+
16+
.unlighthouse

bun.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"date-fns": "^4.1.0",
1919
"markdown-to-txt": "^2.0.1",
2020
"sharp": "^0.34.0",
21-
"svelte": "^5.25.7",
21+
"svelte": "^5.25.8",
2222
},
2323
"devDependencies": {
2424
"@astrojs/check": "^0.9.4",

src/components/Logo.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const props = Astro.props;
77
---
88

99
<img
10-
aria-labelledby="ut.code();"
10+
alt="ut.code();"
1111
class={props.class}
1212
src={props.variant === "default"
1313
? "/utcode-logo/normal.svg"

src/pages/index.astro

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ articles.splice(3);
2727
formats={["avif", "webp"]}
2828
alt=""
2929
loading="lazy"
30+
quality="mid"
31+
width="1920"
32+
height="1080"
3033
class="skeleton fixed top-0 -z-10 h-[100lvh] max-w-full object-cover object-center select-none"
3134
src={Hero}
3235
/>
@@ -86,6 +89,7 @@ articles.splice(3);
8689
<a
8790
class="hover-underline mt-2 inline flex-0 items-center gap-1"
8891
href={`/activities/${activity.key}/`}
92+
aria-label={activity.title}
8993
>
9094
<span>Learn more</span>
9195
<Icon name="feather:arrow-right" class="inline h-4 w-4" />

0 commit comments

Comments
 (0)