Files
radio.org.tr/keystatic.config.ts
Buğra Canata 24e091ae07 Simplify KeyStatic config - remove all extras
Remove descriptions, defaults, and extra options that might cause
compatibility issues with KeyStatic 5.x.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-17 23:38:52 +03:00

60 lines
1.3 KiB
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { config, fields, collection } from '@keystatic/core';
export default config({
storage: {
kind: 'github',
repo: 'YM1KTC/ARC-Web-Sitesi',
branch: 'main',
},
ui: {
brand: {
name: 'ARC CMS',
},
navigation: {
'İçerik': ['post'],
},
},
collections: {
post: collection({
label: 'Blog Yazıları',
slugField: 'title',
path: 'src/data/post/*',
format: {
contentField: 'body',
frontmatter: 'yaml',
},
columns: ['title', 'date', 'author'],
schema: {
title: fields.text({
label: 'Başlık',
}),
date: fields.datetime({
label: 'Yayın Tarihi',
}),
author: fields.text({
label: 'Yazar',
}),
categories: fields.array(fields.text({ label: 'Kategori' }), {
label: 'Kategoriler',
}),
tags: fields.array(fields.text({ label: 'Etiket' }), {
label: 'Etiketler',
}),
layout: fields.text({
label: 'Sayfa Düzeni',
}),
image: fields.image({
label: 'Öne Çıkan Görsel',
}),
excerpt: fields.text({
label: 'Kısa Özet',
multiline: true,
}),
body: fields.markdoc({
label: 'İçerik',
}),
},
}),
},
});