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ı',
|
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',
|
||||||
|
|||||||
Reference in New Issue
Block a user