edited post

This commit is contained in:
Morgan 2023-10-26 14:52:56 +09:00
parent 7effdca573
commit 1ad25f9126
13 changed files with 23 additions and 4 deletions

View File

@ -106,14 +106,18 @@ params:
menu:
main:
- identifier: posts
name: Posts
url: /posts/
weight: 30
- identifier: admin
name: Admin
url: /admin/
weight: 10
- identifier: diary
name: Diary
url: /blog/
weight: 30
- identifier: posts
name: Posts
url: /posts/
weight: 30
# - identifier: tags
# name: Tags
# url: /tags/

View File

@ -24,3 +24,18 @@ collections:
- { label: 'Slug', name: 'slug', widget: 'string' }
- { label: 'Description', name: 'description', widget: 'string', required: false }
- { label: 'Body', name: 'body', widget: 'markdown' }
- name: 'diary'
label: 'Diary'
folder: 'content/blog'
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', required: false }
- { label: 'Body', name: 'body', widget: 'markdown' }