add additional projects as drafts

This commit is contained in:
2026-11-01 20:12:12 -05:00
parent c8d0e22913
commit f90d170c1f
11 changed files with 191 additions and 4 deletions
+6
View File
@@ -0,0 +1,6 @@
import { getCollection } from 'astro:content';
export async function getProjects() {
const all = await getCollection('projects', ({ data }) => import.meta.env.DEV || !data.draft);
return all.sort((a, b) => a.data.order - b.data.order);
}