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:
Buğra Canata
2026-01-17 23:25:43 +03:00
parent 02ba91feb9
commit 0fedaf6d04
+3 -5
View File
@@ -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',