21 lines
980 B
YAML
21 lines
980 B
YAML
backend:
|
|
name: gitea
|
|
repo: maximeg/palettetest # Path to your Gitea repository
|
|
app_id: bfbd2107-f7a5-42be-8901-589294019980 # The Client ID provided by Gitea
|
|
api_root: https://git.deuxfleurs.fr/api # API URL of your Gitea instance
|
|
base_url: https://git.deuxfleurs.fr # Root URL of your Gitea instance
|
|
# optional, defaults to main
|
|
# branch: main
|
|
media_folder: "static/images/uploads"
|
|
collections:
|
|
- name: posts
|
|
identifier_field: name
|
|
folder: '_posts/blog' # The path to the folder where the documents are stored
|
|
slug: '{{year}}-{{month}}-{{day}}-{{slug}}' # Filename template, e.g., yyyy-MM-dd-title.md
|
|
fields: # The fields for each document, usually in front matter
|
|
- {name: 'layout', widget: 'hidden', default: 'blog' }
|
|
- {name: 'title', widget: 'string' }
|
|
- {name: 'date', widget: 'datetime' }
|
|
- {name: 'thumbnail', widget: 'image' }
|
|
- {name: 'rating', widget: 'number' }
|
|
- {name: 'body', widget: 'markdown' }
|