Update static/admin/config.yml

This commit is contained in:
Morgan 2023-10-25 16:10:31 +09:00
parent 5277ea1911
commit 07cc2cb203
1 changed files with 4 additions and 2 deletions

View File

@ -10,15 +10,17 @@ media_folder: static/img
public_folder: /img
collections:
- name: 'blog'
label: 'Blog'
- name: 'post'
label: 'Post'
folder: 'content/posts'
create: true
publish_mode: editorial_workflow
slug: '{{year}}-{{month}}-{{day}}-{{slug}}'
editor:
preview: false
fields:
- { label: 'Title', name: 'title', widget: 'string' }
- { label: 'Publish Date', name: 'date', widget: 'datetime' }
- { label: 'Slug', name: 'slug', widget: 'string' }
- { label: 'Description', name: 'description', widget: 'string' }
- { label: 'Body', name: 'body', widget: 'markdown' }