All checks were successful
Build and Deploy Astro Site / deploy (push) Successful in 42s
19 lines
445 B
TypeScript
19 lines
445 B
TypeScript
import { config, fields, collection } from '@keystatic/core';
|
|
|
|
export default config({
|
|
storage: {
|
|
kind: 'local',
|
|
},
|
|
collections: {
|
|
posts: collection({
|
|
label: 'Posts',
|
|
slugField: 'title',
|
|
path: 'src/content/posts/*',
|
|
format: { contentField: 'content' },
|
|
schema: {
|
|
title: fields.slug({ name: { label: 'Title' } }),
|
|
content: fields.markdoc({ label: 'Content' }),
|
|
},
|
|
}),
|
|
},
|
|
}); |