feat(snippets): introduce reusable code chunks section, add cms support, and fix navbar turkish characters

This commit is contained in:
Poyraz Avsever
2026-03-30 11:30:14 +03:00
parent d3c13ed25d
commit 31da9f114b
9 changed files with 308 additions and 5 deletions
+9
View File
@@ -0,0 +1,9 @@
import { SnippetsContent } from "@/components/snippets-content";
import { listSnippets } from "@/data/snippets";
export default async function SnippetsPage() {
const snippets = await listSnippets();
const categories = ["All", ...new Set(snippets.map((s) => s.category))];
return <SnippetsContent snippets={snippets} categories={categories} />;
}