Files
blog_astro/keystatic.config.ts
Dave b8d43e250a
All checks were successful
Build and Deploy Astro Site / deploy (push) Successful in 42s
Added keystatic
2025-09-02 20:02:14 +02:00

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' }),
},
}),
},
});