From ce5b248db27e7cf6d568b22a48de37c50942f68d Mon Sep 17 00:00:00 2001 From: KazooTTT Date: Thu, 25 Jul 2024 16:06:34 +0800 Subject: [PATCH] feat: delete useless page --- src/pages/categories/[category]/index.astro | 58 --------------------- 1 file changed, 58 deletions(-) delete mode 100644 src/pages/categories/[category]/index.astro diff --git a/src/pages/categories/[category]/index.astro b/src/pages/categories/[category]/index.astro deleted file mode 100644 index 5f18ccc..0000000 --- a/src/pages/categories/[category]/index.astro +++ /dev/null @@ -1,58 +0,0 @@ ---- -import Button from '@/components/Button.astro' -import PageLayout from '@/layouts/BaseLayout.astro' -import { getAllPosts, getUniqueCategoriesWithCount } from '@/utils' - -const allPosts = await getAllPosts() -const allCategories = getUniqueCategoriesWithCount(allPosts) - -const meta = { - description: "A list of all the topics I've written about in my posts", - title: 'All Categories' -} ---- - - -
- - -

Categories

- {allCategories.length === 0 &&

No posts yet.

} - - { - allCategories.length > 0 && ( -
    - {allCategories.map(([category, val]) => ( -
  • - - #{category} - - - - {val} post{val > 1 && 's'} - -
  • - ))} -
- ) - } -
-