msfjarvis.dev/static/admin/config.yml

25 lines
863 B
YAML

backend:
name: git-gateway
branch: main
media_folder: static/uploads
public_folder: /uploads
collections:
- name: 'blog'
label: 'Blog'
folder: 'content/posts'
path: '{{slug}}/index.md'
create: true
slug: '{{slug}}'
editor:
preview: false
format: toml-frontmatter
fields:
- { label: 'Title', name: 'title', widget: 'string' }
- { label: 'Publish Date', name: 'date', widget: 'datetime', picker_utc: true }
- { label: 'Description', name: 'summary', widget: 'string' }
- { label: 'Categories', name: 'categories', widget: 'list' }
- { label: 'Tags', name: 'tags', widget: 'list' }
- { label: 'Social image', name: 'socialImage', widget: 'image' }
- { label: 'Draft', name: 'draft', widget: 'boolean', required: false }
- { label: 'Body', name: 'body', widget: 'markdown' }