shufang.org/static/admin/config.yml
2022-04-04 19:04:19 +08:00

19 lines
590 B
YAML

backend:
name: git-gateway
branch: main # Branch to update (optional; defaults to master)
media_folder: static/images
public_folder: /images
collections:
- name: 'blog'
label: 'Blog'
folder: 'content/blog'
create: true
slug: '{{year}}-{{month}}-{{day}}-{{slug}}'
editor:
preview: false
fields:
- { label: 'Title', name: 'title', widget: 'string' }
- { label: 'Publish Date', name: 'date', widget: 'datetime' }
- { label: 'Description', name: 'description', widget: 'string' }
- { label: 'Body', name: 'body', widget: 'markdown' }