palettetest/static/admin/config.yml
maxime-cool 3bad6b9b5b
All checks were successful
continuous-integration/drone/push Build is passing
changed config back
2024-01-19 15:58:00 +01:00

24 lines
1.1 KiB
YAML

backend:
name: gitea
repo: maximeg/palettetest # Path to your Gitea repository
app_id: ba3b650f-18ee-4be6-95c8-35021e2470a2 # 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
label: 'Blog' # Used in the UI
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
- { 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' }