first commit

This commit is contained in:
2026-02-18 14:07:18 +01:00
commit c48218e225
20 changed files with 10641 additions and 0 deletions

27
keystatic.config.ts Normal file
View File

@@ -0,0 +1,27 @@
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',
options: {
image: {
directory: 'src/assets/images/posts',
publicPath: '../../assets/images/posts/',
},
},
}),
},
}),
},
});