summaryrefslogtreecommitdiff
path: root/examples/blog/src/content
diff options
context:
space:
mode:
Diffstat (limited to 'examples/blog/src/content')
-rw-r--r--examples/blog/src/content/config.ts16
1 files changed, 0 insertions, 16 deletions
diff --git a/examples/blog/src/content/config.ts b/examples/blog/src/content/config.ts
deleted file mode 100644
index 667a31cc7..000000000
--- a/examples/blog/src/content/config.ts
+++ /dev/null
@@ -1,16 +0,0 @@
-import { defineCollection, z } from 'astro:content';
-
-const blog = defineCollection({
- type: 'content',
- // Type-check frontmatter using a schema
- schema: z.object({
- title: z.string(),
- description: z.string(),
- // Transform string to Date object
- pubDate: z.coerce.date(),
- updatedDate: z.coerce.date().optional(),
- heroImage: z.string().optional(),
- }),
-});
-
-export const collections = { blog };