Add Links page, collection, and nav entry
This commit is contained in:
+13
-1
@@ -29,4 +29,16 @@ const coffee = defineCollection({
|
||||
}),
|
||||
});
|
||||
|
||||
export const collections = { blog, coffee };
|
||||
const links = defineCollection({
|
||||
type: "content",
|
||||
schema: z.object({
|
||||
title: z.string(),
|
||||
url: z.string().url(),
|
||||
description: z.string(),
|
||||
category: z.string().optional(),
|
||||
date: z.coerce.date().optional(),
|
||||
draft: z.boolean().optional().default(false),
|
||||
}),
|
||||
});
|
||||
|
||||
export const collections = { blog, coffee, links };
|
||||
|
||||
Reference in New Issue
Block a user