Foundation + Schemas
This commit is contained in:
12
src/keystatic/fields/content/content.ts
Normal file
12
src/keystatic/fields/content/content.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { fields } from '@keystatic/core'
|
||||
|
||||
import { assets } from '@/lib/content/assets'
|
||||
|
||||
export const content = (collection: string) =>
|
||||
fields.markdoc({
|
||||
label: 'Content',
|
||||
options: {
|
||||
heading: [2, 3, 4],
|
||||
image: assets(collection),
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user