Skip to content

Commit 807b5e1

Browse files
committed
perf(fonts): rename font to GeistMono-Variable.woff2 and update URLs to avoid bracket encoding
1 parent ddf42e0 commit 807b5e1

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed
File renamed without changes.

src/layouts/Base.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const { title = 'Your Name', description = 'Personal site' } = Astro.props;
1111
<meta name="description" content={description} />
1212
<meta name="theme-color" content="#ffffff" />
1313

14-
<link rel="preload" as="font" href="/fonts/geist/GeistMono[wght].woff2" type="font/woff2" crossorigin>
14+
<link rel="preload" as="font" href="/fonts/geist/GeistMono-Variable.woff2" type="font/woff2" crossorigin>
1515

1616
<link rel="icon" href="/favicon.svg" />
1717
<title>{title}</title>

src/styles/global.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@font-face {
22
font-family: "Geist Mono";
3-
src: url("/fonts/geist/GeistMono[wght].woff2") format("woff2-variations");
3+
src: url("/fonts/geist/GeistMono-Variable.woff2") format("woff2-variations");
44
font-weight: 100 900;
55
font-style: normal;
66
font-display: swap;

0 commit comments

Comments
 (0)