2024-01-15 16:06:29 +00:00
|
|
|
backend:
|
2024-01-16 13:55:48 +00:00
|
|
|
name: gitea
|
2024-01-15 16:06:29 +00:00
|
|
|
repo: maximeg/palettetest # Path to your Gitea repository
|
2024-01-18 10:58:42 +00:00
|
|
|
app_id: d2544873-0ac9-4f12-b7b0-d4aa50541688 # The Client ID provided by Gitea
|
|
|
|
api_root: https://gitea.com/api # API URL of your Gitea instance
|
|
|
|
base_url: https://gitea.com/ # Root URL of your Gitea instance
|
2024-01-15 16:06:29 +00:00
|
|
|
# optional, defaults to main
|
2024-01-15 16:21:00 +00:00
|
|
|
# branch: main
|
|
|
|
media_folder: "static/images/uploads"
|
|
|
|
collections:
|
|
|
|
- name: posts
|
|
|
|
identifier_field: name
|
2024-01-15 16:54:27 +00:00
|
|
|
label: 'Blog' # Used in the UI
|
2024-01-15 16:47:16 +00:00
|
|
|
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
|
2024-01-15 16:54:27 +00:00
|
|
|
- { label: 'Layout', name: 'layout', widget: 'hidden', default: 'blog' }
|
|
|
|
- { label: 'Title', name: 'title', widget: 'string' }
|
|
|
|
- { label: 'Publish Date', name: 'date', widget: 'datetime' }
|
|
|
|
- { label: 'Featured Image', name: 'thumbnail', widget: 'image' }
|
|
|
|
- { label: 'Rating (scale of 1-5)', name: 'rating', widget: 'number' }
|
|
|
|
- { label: 'Body', name: 'body', widget: 'markdown' }
|
|
|
|
|