From 5e6cf18108d32cdc0d7a07b5e157a882a7729a3e Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Fri, 3 Jan 2025 15:43:42 +0200 Subject: [PATCH] Fixed the blogs page for mobile --- src/components/BlogItem.astro | 2 +- src/pages/blogs.astro | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/components/BlogItem.astro b/src/components/BlogItem.astro index 6cff714..c61f62b 100644 --- a/src/components/BlogItem.astro +++ b/src/components/BlogItem.astro @@ -19,7 +19,7 @@ interface Props { const { title, description, date, href, header } = Astro.props; --- - + { href ? ( diff --git a/src/pages/blogs.astro b/src/pages/blogs.astro index 45089f6..84cca84 100644 --- a/src/pages/blogs.astro +++ b/src/pages/blogs.astro @@ -14,14 +14,16 @@ const blogs = (await getCollection("blogs")) })); const repeatArray = (arr, times) => Array(times).fill(arr).flat(); const repeated = repeatArray(blogs, 10); - --- - +

$ ls -lah -t --color=auto ~/blogs

-
+
{ repeated.map((blog) => ( <>