diff --git a/astro/astro.config.mjs b/astro/astro.config.mjs index 2f3e8ad..867516d 100644 --- a/astro/astro.config.mjs +++ b/astro/astro.config.mjs @@ -21,6 +21,9 @@ export default defineConfig({ image({ serviceEntryPoint: "@astrojs/image/sharp", }), + prefetch({ + selector: "a", + }), sitemap(), prefetch(), ], diff --git a/astro/src/pages/index.astro b/astro/src/pages/index.astro index fbb15f1..b7b2d6e 100644 --- a/astro/src/pages/index.astro +++ b/astro/src/pages/index.astro @@ -25,7 +25,7 @@ const posts = await getPosts(); { posts.length > 0 ? ( posts.map((post) => ( - +

{post.title}

{post.publishedDate && (