Commit 157a95e

HPCesia <me@hpcesia.com>
2025-01-25 14:51:05
feat: spec page collection
1 parent 1824ca5
Changed files (1)
src/content.config.ts
@@ -19,6 +19,19 @@ const postsCollection = defineCollection({
     lang: z.string().optional().default(''),
   }),
 });
+
+const specCollection = defineCollection({
+  loader: glob({
+    pattern: '**/*.md',
+    base: 'src/content/spec',
+  }),
+  schema: z.object({
+    title: z.string().optional(),
+    description: z.string().optional(),
+  }),
+});
+
 export const collections = {
   posts: postsCollection,
+  spec: specCollection,
 };