21 lines
914 B
YAML
21 lines
914 B
YAML
backend:
|
|
name: git-gateway
|
|
branch: main # Branch to update (optional; defaults to master)
|
|
media_folder: static/images/2022
|
|
public_folder: /images/2022
|
|
collections:
|
|
- name: 'blog'
|
|
label: 'Blog'
|
|
folder: 'content/blog'
|
|
create: true
|
|
slug: '{{year}}-{{month}}-{{day}}-{{fields.customized-slug}}'
|
|
editor:
|
|
preview: false
|
|
fields:
|
|
- { label: 'Title', name: 'title', widget: 'string' }
|
|
- { label: 'Author', name: 'author', widget: 'string' }
|
|
- { label: 'Publish Date', name: 'date', widget: 'datetime' }
|
|
- { label: 'URL', hint: 'The final permalink will be https://shufang.org/blog/<year>-<month>-<day>-<URL>.html', name: 'customized-slug', widget: 'string' }
|
|
- { label: 'Draft', name: 'draft', widget: 'boolean', default: true }
|
|
- { label: 'Description', name: 'summary', widget: 'string' }
|
|
- { label: 'Body', name: 'body', widget: 'markdown' }
|