add additional projects as drafts
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user