From 1ebdd2bd9c83db8a3e2954a96343e76ef7b0990e Mon Sep 17 00:00:00 2001 From: Troy Date: Sun, 19 Jan 2025 15:08:48 +0000 Subject: [PATCH] improve relatedarticles layout --- astro.config.ts | 1 + src/components/Button.astro | 2 +- src/components/RelatedArticles.astro | 6 +----- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/astro.config.ts b/astro.config.ts index 1eb7f9f..0f467b7 100644 --- a/astro.config.ts +++ b/astro.config.ts @@ -33,4 +33,5 @@ export default defineConfig({ experimental: { responsiveImages: true, }, + prefetch: true, }); diff --git a/src/components/Button.astro b/src/components/Button.astro index 0f054c9..aa1c22f 100644 --- a/src/components/Button.astro +++ b/src/components/Button.astro @@ -9,7 +9,7 @@ const { href, link } = Astro.props;
{link}
diff --git a/src/components/RelatedArticles.astro b/src/components/RelatedArticles.astro index 3147eed..b99fa4c 100644 --- a/src/components/RelatedArticles.astro +++ b/src/components/RelatedArticles.astro @@ -19,19 +19,15 @@ const next = items[(index + 1) % items.length]; { items.length > 1 ? ( -
-
+
-
) : null }