From 9e0afdad03da93b9c9faa8e3abfb56c3d716216b Mon Sep 17 00:00:00 2001 From: grassblock Date: Mon, 18 Aug 2025 18:29:37 +0800 Subject: [PATCH] feat: make tags & categories list flex --- src/pages/categories.astro | 15 +++++++++++---- src/pages/tags.astro | 11 +++++++++-- 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/src/pages/categories.astro b/src/pages/categories.astro index dbe2bd4..e9afd8d 100644 --- a/src/pages/categories.astro +++ b/src/pages/categories.astro @@ -9,11 +9,18 @@ const uniqueCategories = [...new Set(allPosts.map((post: any) => post.data.categ

~/blog/categories

- ls -l categories/ -
- {uniqueCategories.map((tag) => ( -

{tag}

+ ls categories/ +
+ {uniqueCategories.map((category) => ( +

{category}

))}
+ \ No newline at end of file diff --git a/src/pages/tags.astro b/src/pages/tags.astro index 3467401..468f271 100644 --- a/src/pages/tags.astro +++ b/src/pages/tags.astro @@ -9,11 +9,18 @@ const uniqueTags = [...new Set(allPosts.map((post: any) => post.data.tags ? post

~/blog/tags

- ls -l tags/ -
+ ls tags/ +
{uniqueTags.map((tag) => (

{tag}

))}
+