blog/static/admin/config.yml

26 lines
805 B
YAML
Raw Normal View History

2023-10-25 13:14:23 +09:00
backend:
name: gitea
repo: morgan/blog # Path to your Gitea repository
2023-10-25 14:56:16 +09:00
app_id: 64d5b875-e747-4176-b545-ce7a3b0c7f16
2023-10-25 13:14:23 +09:00
api_root: https://git.morgan.kr/api/v1 # API URL of your Gitea instance
base_url: https://git.morgan.kr # Root URL of your Gitea instance
# optional, defaults to master
branch: main
media_folder: static/img
public_folder: /img
collections:
- name: 'blog'
label: 'Blog'
folder: 'content/posts'
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' }
2023-10-25 14:56:16 +09:00
- { label: 'Body', name: 'body', widget: 'markdown' }