diff --git a/astro.config.mjs b/astro.config.mjs index 49440e2..4dd28b1 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -1,5 +1,5 @@ // @ts-check -import { defineConfig } from 'astro/config'; +import { defineConfig, fontProviders } from 'astro/config'; import react from '@astrojs/react'; import mdx from '@astrojs/mdx'; @@ -42,10 +42,27 @@ export default defineConfig({ integrations: [react(), mdx(), sitemap()], adapter: vercel({ - webAnalytics: { enabled: true }, + webAnalytics: { enabled: false }, }), vite: { plugins: [tailwindcss()], }, + + fonts: [ + { + provider: fontProviders.local(), + name: "iA Writer Duo S", + cssVariable: "--font-iawriter", + options: { + variants: [ + { + src: ['./src/assets/iAWriterDuoS-Regular.woff2'], + weight: 'normal', + style: 'normal' + } + ] + } + } + ] }); diff --git a/src/assets/iAWriterDuoS-Regular.woff2 b/src/assets/iAWriterDuoS-Regular.woff2 new file mode 100644 index 0000000..c04f667 Binary files /dev/null and b/src/assets/iAWriterDuoS-Regular.woff2 differ diff --git a/src/components/PostCard.astro b/src/components/PostCard.astro index a0ed8cb..0cd0e9a 100644 --- a/src/components/PostCard.astro +++ b/src/components/PostCard.astro @@ -13,7 +13,7 @@ const href = getLocalizedPath(`/posts/${slugOf(post)}`, lang); const tagsHref = (tag: string) => getLocalizedPath(`/tags/${tag}`, lang); --- -
+