Files
radio.org.tr/public/decapcms/config.yml
T

57 lines
1.6 KiB
YAML
Raw 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.
# admin/config.yml
backend:
name: git-gateway
branch: main
accept_roles: # ← the magic line
- admin
- editor
# Explicitly block users without roles
squash_merges: true
media_folder: 'public/images'
public_folder: '/images'
locale: 'tr' # Türkçe olarak ayarlandı
site_url: https://taslak.radio.org.tr
display_url: https://taslak.radio.org.tr
collections:
- name: 'post'
label: 'Blog Yazıları'
folder: 'src/data/post'
create: true
slug: '{{year}}-{{month}}-{{day}}-{{slug}}'
fields:
- { label: 'Başlık', name: 'title', widget: 'string' }
- { label: 'Yayın Tarihi', name: 'date', widget: 'datetime', format: 'YYYY-MM-DD HH:mm:ss' }
- { label: 'Yazar', name: 'author', widget: 'string', default: 'TA1SPH' }
- {
label: 'Kategoriler',
name: 'categories',
widget: 'list',
allow_add: true,
allow_delete: true,
collapsed: false,
field: { label: 'Kategori', name: 'category', widget: 'string' },
}
- {
label: 'Etiketler',
name: 'tags',
widget: 'list',
allow_add: true,
allow_delete: true,
collapsed: false,
field: { label: 'Etiket', name: 'tag', widget: 'string' },
}
- { label: 'Düzen', name: 'layout', widget: 'string', default: 'post' }
- {
label: 'Öne Çıkan Görsel',
name: 'image',
widget: 'image',
media_folder: '/public/images',
public_folder: '/images',
required: false,
}
- { label: 'İçerik', name: 'body', widget: 'markdown' }