Switch to using Fontsource

This commit is contained in:
SkyfallWasTaken 2024-07-14 13:57:55 +01:00
parent 8cdaa9e69a
commit ff9913a816
3 changed files with 2 additions and 8 deletions

BIN
bun.lockb

Binary file not shown.

View file

@ -12,6 +12,7 @@
},
"dependencies": {
"@astrojs/svelte": "^5.6.0",
"@fontsource-variable/plus-jakarta-sans": "^5.0.21",
"activity-calendar-widget": "^0.0.14",
"octokit": "^4.0.2",
"svelte": "^4.2.18",

View file

@ -1,6 +1,7 @@
---
// Import the global.css file here so that it is included on
// all pages through the use of the <BaseHead /> component.
import "@fontsource-variable/plus-jakarta-sans";
import "../styles/global.css";
import { ViewTransitions } from "astro:transitions";
@ -21,14 +22,6 @@ const { title, description, image = "/blog-placeholder-1.jpg" } = Astro.props;
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="generator" content={Astro.generator} />
<!-- Font preloads -->
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap"
rel="stylesheet"
/>
<!-- Canonical URL -->
<link rel="canonical" href={canonicalURL} />