24e091ae07
Remove descriptions, defaults, and extra options that might cause compatibility issues with KeyStatic 5.x. Co-Authored-By: Claude <noreply@anthropic.com>
60 lines
1.3 KiB
TypeScript
60 lines
1.3 KiB
TypeScript
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',
|
||
}),
|
||
},
|
||
}),
|
||
},
|
||
});
|