feat: some cleanups

This commit is contained in:
Barrett Ruth 2025-10-08 19:25:10 -04:00
parent 60aea94006
commit 7b6b0b4176
6 changed files with 29 additions and 59 deletions

View file

@ -2,12 +2,6 @@
import BaseLayout from "../../layouts/BaseLayout.astro";
import { getCollection } from "astro:content";
export async function getStaticPaths() {
const posts = await getCollection("posts");
const categories = Array.from(new Set(posts.map((p) => p.id.split("/")[0])));
return categories.map((category) => ({ params: { category } }));
}
const category = Astro.params.category;
const title = "Barrett Ruth";