Create config.yml

This commit is contained in:
Jason TIAN 2022-04-04 19:04:19 +08:00 committed by GitHub
parent 087171e4d9
commit a148b9716f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 18 additions and 0 deletions

18
static/admin/config.yml Normal file
View File

@ -0,0 +1,18 @@
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' }