Skip to content

Commit

Permalink
feat(Post): add "status" and "test" fields
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusfg7 committed May 20, 2023
1 parent ddb76a5 commit 5c1dd58
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions content/definitions/Post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 5c1dd58

Please sign in to comment.