Barebone Baseline
This commit is contained in:
@@ -1,27 +1,13 @@
|
||||
import { config, fields, collection } from '@keystatic/core';
|
||||
import { config } from '@keystatic/core';
|
||||
import { articles } from './src/keystatic/collections/articles';
|
||||
import { pages } from './src/keystatic/collections/pages';
|
||||
|
||||
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',
|
||||
options: {
|
||||
image: {
|
||||
directory: 'src/assets/images/posts',
|
||||
publicPath: '../../assets/images/posts/',
|
||||
},
|
||||
},
|
||||
}),
|
||||
},
|
||||
}),
|
||||
articles,
|
||||
pages,
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user