Foundation + Schemas
This commit is contained in:
18
src/keystatic/fields/content/dates.ts
Normal file
18
src/keystatic/fields/content/dates.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { fields } from '@keystatic/core'
|
||||
|
||||
export const dates = fields.object(
|
||||
{
|
||||
published: fields.datetime({
|
||||
label: 'Published',
|
||||
defaultValue: {
|
||||
kind: 'now',
|
||||
},
|
||||
}),
|
||||
updated: fields.datetime({
|
||||
label: 'Updated',
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: 'Dates',
|
||||
},
|
||||
)
|
||||
Reference in New Issue
Block a user