1
0
Fork 0
palette-demo-EnvieAppartAgee/static/admin/config.yml

50 lines
2 KiB
YAML
Raw Normal View History

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-19 15:10:33 +00:00
app_id: e8c9892d-30f2-428f-b639-172402acbf94 # The Client ID provided by Gitea
2024-01-24 09:38:00 +00:00
api_root: https://git.deuxfleurs.fr/api/v1 # API URL of your Gitea instance
2024-01-19 14:58:00 +00:00
base_url: https://git.deuxfleurs.fr/ # 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
2024-01-24 09:38:00 +00:00
media_folder: "static"
public_folder: "/images/uploads"
2024-01-15 16:21:00 +00:00
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' }
2024-01-24 10:31:27 +00:00
# - label: 'Settings'
# name: settings
# files:
# - label: 'Theme Settings'
# name: theme settings
# file: 'site/settings.toml'
# fields:
# - label: toml file
# name: toml file
# widget: 'file'
# media_library:
# config:
# multiple: true
2024-01-24 17:56:43 +00:00
- label: 'Configuration'
2024-01-24 09:58:54 +00:00
name: settings
files:
2024-01-24 17:38:13 +00:00
- label: 'Configuration du thème'
2024-01-24 09:58:54 +00:00
name: theme settings
2024-01-24 17:24:52 +00:00
file: 'hugo_config/_default/theme_settings.toml'
2024-01-24 10:25:44 +00:00
extension: toml
2024-01-24 09:58:54 +00:00
fields:
2024-01-24 17:56:43 +00:00
- { label: Couleur du thème, name: background_color_class, widget: 'select', options: ["bg-red", "bg-blue", "bg-green", "bg-purple"] }
# - label: 'Paramètres'
# name: params
# widget: object
# fields: