Skip to content

Commit 66e69c2

Browse files
committed
Blog: Change import method of Fira Code font
1 parent b80ad48 commit 66e69c2

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

blog/src/layouts/Layout.astro

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ const copyrightYear = new Date().getFullYear();
3636

3737
{/* CSS */}
3838
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]">
39+
{/* Custom fonts */}
40+
<link rel="preconnect" href="https://fonts.googleapis.com">
41+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
42+
<link href="https://fonts.googleapis.com/css2?family=Fira+Code:[email protected]&display=swap" rel="stylesheet">
3943

4044
{/* JavaScript */}
4145
{/* Nothing here yet */}

blog/src/styles/global.css

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
/* Import fonts */
2-
@import url('https://fonts.googleapis.com/css2?family=Fira+Code&display=swap');
3-
41
/* General */
52
html {
63
font-size: clamp(14px, 2.75vw, 16px);

0 commit comments

Comments
 (0)