diff --git a/src/content/blog/2024-07-13T02:19:37.399Z-not-about-writing-but-about-reviewing.md b/src/content/blog/2024-07-13T02:19:37.399Z-not-about-writing-but-about-reviewing.md index 1fb8558..08b5f54 100644 --- a/src/content/blog/2024-07-13T02:19:37.399Z-not-about-writing-but-about-reviewing.md +++ b/src/content/blog/2024-07-13T02:19:37.399Z-not-about-writing-but-about-reviewing.md @@ -2,7 +2,7 @@ slug: "not-about-writing-but-about-reviewing" title: "Not about writing, but about reviewing" pubDate: 2024-07-13T02:19:37.399Z -draft: draft +draft: true tags: - writing --- diff --git a/src/content/config.ts b/src/content/config.ts index fd64098..42e4881 100644 --- a/src/content/config.ts +++ b/src/content/config.ts @@ -2,14 +2,20 @@ import { defineCollection, z } from 'astro:content'; import { rssSchema } from '@astrojs/rss'; const blogCollection = defineCollection({ + type: 'content', schema: z .object({ + slug: z.string().optional(), + title: z.string(), + pubDate: z.coerce.date(), tags: z.optional(z.array(z.string())), + draft: z.boolean().optional(), }) .merge(rssSchema) }); const listsCollection = defineCollection({ + type: 'content', schema: z .object({ tags: z.optional(z.array(z.string())), @@ -17,7 +23,7 @@ const listsCollection = defineCollection({ .merge(rssSchema) }); -export const collection = { +export const collections = { blog: blogCollection, lists: listsCollection, }