aboutsummaryrefslogtreecommitdiff
path: root/src/layouts
diff options
context:
space:
mode:
authorAriel Costas Guerrero <ariel@costas.dev>2026-03-13 23:17:18 +0100
committerAriel Costas Guerrero <ariel@costas.dev>2026-03-13 23:17:18 +0100
commit3dcfdf932babdab522b5544367956531e60956b2 (patch)
tree5215a43e3ab81b2b81356f2b4c5fc5a5f4a0ff4d /src/layouts
parent42edb9a443cc9ea1bf6fe833ee46953a5a3da5f8 (diff)
chore: update dependencies and improve font handling
- Bump versions of several Astro-related dependencies in package.json for better performance and features. - Update content.config.ts to import z from astro/zod for improved type validation. - Modify Layout.astro to use the Font component for better font management and preload the Archivo font. - Change font stacks in _variables.scss to reflect the new font choices, enhancing typography consistency.
Diffstat (limited to 'src/layouts')
-rw-r--r--src/layouts/Layout.astro4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro
index ebe5917..ee1a56d 100644
--- a/src/layouts/Layout.astro
+++ b/src/layouts/Layout.astro
@@ -1,7 +1,7 @@
---
-import '@fontsource-variable/archivo'
import Header from "../partials/Header.astro";
import Footer from "../partials/Footer.astro";
+import { Font } from "astro:assets";
interface Props {
title: string;
@@ -46,6 +46,8 @@ const { title, description, empty } = Astro.props;
<title>{title} - Ariel Costas</title>
+ <Font cssVariable="--font-archivo" preload />
+
<slot name="head-jsonld" />
</head>
<body>