From 8b74051bf58f48cbdd1c80e9b130e51b0702a725 Mon Sep 17 00:00:00 2001 From: IwanIDev Date: Fri, 27 Mar 2026 10:13:21 +0000 Subject: feat: enabled prefetch on blog posts --- astro.config.mjs | 1 + src/components/BlogPosts.astro | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index 00bde21..2d50471 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -10,4 +10,5 @@ export default defineConfig({ plugins: [tailwindcss()], }, integrations: [react()], + prefetch: true, }) diff --git a/src/components/BlogPosts.astro b/src/components/BlogPosts.astro index 9101e38..5a66a89 100644 --- a/src/components/BlogPosts.astro +++ b/src/components/BlogPosts.astro @@ -21,7 +21,7 @@ const dateFormatter = new Intl.DateTimeFormat('en-GB', {

Blog Posts

{sortedPosts.map((post) => ( - +

{post.data.title}

@@ -37,4 +37,4 @@ const dateFormatter = new Intl.DateTimeFormat('en-GB', {
))}
- \ No newline at end of file + -- cgit