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 public_folder: /img
collections: collections:
- name: 'blog' - name: 'post'
label: 'Blog' label: 'Post'
folder: 'content/posts' folder: 'content/posts'
create: true create: true
publish_mode: editorial_workflow
slug: '{{year}}-{{month}}-{{day}}-{{slug}}' slug: '{{year}}-{{month}}-{{day}}-{{slug}}'
editor: editor:
preview: false preview: false
fields: fields:
- { label: 'Title', name: 'title', widget: 'string' } - { label: 'Title', name: 'title', widget: 'string' }
- { label: 'Publish Date', name: 'date', widget: 'datetime' } - { label: 'Publish Date', name: 'date', widget: 'datetime' }
- { label: 'Slug', name: 'slug', widget: 'string' }
- { label: 'Description', name: 'description', widget: 'string' } - { label: 'Description', name: 'description', widget: 'string' }
- { label: 'Body', name: 'body', widget: 'markdown' } - { label: 'Body', name: 'body', widget: 'markdown' }