feat: convert site to astro via codex

This commit is contained in:
DeCentN2Madness committed 2026-06-08 11:17:39 -07:00
1 parent f3d3562cec
commit 33e78ff8a5
355 files changed
+19954 -6

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
---
import { getCollection, render } from 'astro:content';
import BlogPostLayout from '../../layouts/BlogPostLayout.astro';
export async function getStaticPaths() {
const posts = await getCollection('blog', ({ data }) => data.lang === 'en' && !data.draft);
return posts.map((entry) => ({ params: { slug: entry.data.slug }, props: { entry } }));
}
const { entry } = Astro.props;
const { Content } = await render(entry);
---
<BlogPostLayout entry={entry}><Content /></BlogPostLayout>