Added keystatic
All checks were successful
Build and Deploy Astro Site / deploy (push) Successful in 42s

This commit is contained in:
2025-09-02 20:02:14 +02:00
parent 26c2917767
commit b8d43e250a
7 changed files with 3917 additions and 776 deletions

19
keystatic.config.ts Normal file
View 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' }),
},
}),
},
});