initial commit

This commit is contained in:
Hunter
2026-11-01 13:23:44 -05:00
commit e03ea4f770
53 changed files with 10802 additions and 0 deletions

18
app/page.tsx Normal file
View File

@@ -0,0 +1,18 @@
import PostTable from "@/components/PostTable";
import { categoryCounts, readPosts } from "@/lib/store";
export const dynamic = "force-dynamic";
export default async function PostsPage() {
const { posts, revision } = await readPosts();
const sorted = [...posts].sort((a, b) => b.date.localeCompare(a.date));
return (
<main>
<PostTable
posts={sorted}
revision={revision}
categories={categoryCounts(posts).map((c) => c.name)}
/>
</main>
);
}