Skip to content

Commit 7cb5a65

Browse files
committed
feat(schema): add id and images fields to project schema
- Add required id field for unique project identification - Add optional images array for project screenshots - Update project collection schema to support image galleries
1 parent 6ada101 commit 7cb5a65

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/content/config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,13 @@ const blog = defineCollection({
1919
const projects = defineCollection({
2020
type: 'data',
2121
schema: z.object({
22+
id: z.string(),
2223
title: z.string(),
2324
description: z.string(),
2425
category: z.enum(['Product', 'Research', 'Tutorial', 'Tool', 'Fun']),
2526
tech: z.array(z.string()),
2627
image: z.string().optional(),
28+
images: z.array(z.string()).optional(),
2729
links: z.object({
2830
website: z.string().url().optional(),
2931
github: z.string().url().optional(),

0 commit comments

Comments
 (0)