Skip to content

Commit

Permalink
chore: add projects collection schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Vexcited committed Jul 13, 2024
1 parent cc5643f commit 1192f66
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/content/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,19 @@ import { defineCollection, z } from 'astro:content';
const guidesCollection = defineCollection({
schema: z.object({
title: z.string(),
description: z.string(),
})
});

const projectsCollection = defineCollection({
schema: z.object({
title: z.string(),
description: z.string(),
languages: z.array(z.string()),
})
});

export const collections = {
'guides': guidesCollection
'guides': guidesCollection,
'projects': projectsCollection
};

0 comments on commit 1192f66

Please sign in to comment.