From 5c1dd584462bb9d3f0aa308569e80200d57f1701 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateus=20Felipe=20Gon=C3=A7alves?= Date: Sat, 20 May 2023 16:31:50 +0000 Subject: [PATCH] feat(Post): add "status" and "test" fields --- content/definitions/Post.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/content/definitions/Post.ts b/content/definitions/Post.ts index 4b06b48a..24c6847a 100644 --- a/content/definitions/Post.ts +++ b/content/definitions/Post.ts @@ -34,6 +34,15 @@ export const Post = defineDocumentType(() => ({ type: 'enum', options: authors.map(author => author.user), required: true + }, + status: { + type: 'enum', + options: ['published', 'draft', 'planned'], + default: 'draft' + }, + test: { + type: 'boolean', + default: false } }, computedFields: {