42 lines
1.3 KiB
YAML
42 lines
1.3 KiB
YAML
backend:
|
|
name: gitea
|
|
repo: morgan/blog
|
|
app_id: 64d5b875-e747-4176-b545-ce7a3b0c7f16
|
|
api_root: https://git.morgan.kr/api/v1
|
|
base_url: https://git.morgan.kr
|
|
branch: main
|
|
|
|
media_folder: static/img
|
|
public_folder: /img
|
|
|
|
collections:
|
|
- 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', 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' }
|