Fix title field: use text instead of slug
The title field was incorrectly using fields.slug() when it should be fields.text(). KeyStatic automatically slugifies the title for URLs when slugField is set. This fixes the "n.call is not a function" error when opening a post. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
+3
-5
@@ -24,11 +24,9 @@ export default config({
|
||||
frontmatter: 'yaml',
|
||||
},
|
||||
schema: {
|
||||
title: fields.slug({
|
||||
name: {
|
||||
label: 'Başlık',
|
||||
description: 'Blog yazısının başlığı (URL\'de kullanılır)',
|
||||
},
|
||||
title: fields.text({
|
||||
label: 'Başlık',
|
||||
description: 'Blog yazısının başlığı (URL\'de kullanılır)',
|
||||
}),
|
||||
date: fields.datetime({
|
||||
label: 'Yayın Tarihi',
|
||||
|
||||
Reference in New Issue
Block a user