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:
+4
-5
@@ -11,7 +11,10 @@ export default config({
|
||||
label: 'Blog Yazıları',
|
||||
slugField: 'title',
|
||||
path: 'src/data/post/*',
|
||||
format: { contentField: 'body' },
|
||||
format: {
|
||||
contentField: 'body',
|
||||
frontmatter: 'yaml',
|
||||
},
|
||||
schema: {
|
||||
title: fields.slug({
|
||||
name: {
|
||||
@@ -52,10 +55,6 @@ export default config({
|
||||
label: 'Öne Çıkan Görsel',
|
||||
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({
|
||||
label: 'Özet',
|
||||
description: 'Blog yazısının kısa özeti',
|
||||
|
||||
Reference in New Issue
Block a user