Update KeyStatic config to match existing post format

- Add explicit frontmatter: 'yaml' to match existing posts
- Remove publishDate field that doesn't exist in current posts
- Keep body as markdoc (supports markdown content)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Buğra Canata
2026-01-17 22:11:55 +03:00
parent dd1806a312
commit 7dcaa2adcb
+4 -5
View File
@@ -11,7 +11,10 @@ export default config({
label: 'Blog Yazıları', label: 'Blog Yazıları',
slugField: 'title', slugField: 'title',
path: 'src/data/post/*', path: 'src/data/post/*',
format: { contentField: 'body' }, format: {
contentField: 'body',
frontmatter: 'yaml',
},
schema: { schema: {
title: fields.slug({ title: fields.slug({
name: { name: {
@@ -52,10 +55,6 @@ export default config({
label: 'Öne Çıkan Görsel', label: 'Öne Çıkan Görsel',
description: 'Blog yazısı için kapak görseli', description: 'Blog yazısı için kapak görseli',
}), }),
publishDate: fields.datetime({
label: 'Yayınlanma Tarihi',
description: 'Content collection için yayın tarihi',
}),
excerpt: fields.text({ excerpt: fields.text({
label: 'Özet', label: 'Özet',
description: 'Blog yazısının kısa özeti', description: 'Blog yazısının kısa özeti',