Added keystatic
All checks were successful
Build and Deploy Astro Site / deploy (push) Successful in 42s
All checks were successful
Build and Deploy Astro Site / deploy (push) Successful in 42s
This commit is contained in:
19
keystatic.config.ts
Normal file
19
keystatic.config.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
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' }),
|
||||
},
|
||||
}),
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user