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',
|
frontmatter: 'yaml',
|
||||||
},
|
},
|
||||||
schema: {
|
schema: {
|
||||||
title: fields.slug({
|
title: fields.text({
|
||||||
name: {
|
label: 'Başlık',
|
||||||
label: 'Başlık',
|
description: 'Blog yazısının başlığı (URL\'de kullanılır)',
|
||||||
description: 'Blog yazısının başlığı (URL\'de kullanılır)',
|
|
||||||
},
|
|
||||||
}),
|
}),
|
||||||
date: fields.datetime({
|
date: fields.datetime({
|
||||||
label: 'Yayın Tarihi',
|
label: 'Yayın Tarihi',
|
||||||
|
|||||||
Reference in New Issue
Block a user