93 lines
3.6 KiB
YAML
93 lines
3.6 KiB
YAML
backend:
|
|
name: gitea
|
|
repo: maximeg/palettetest # Path to your Gitea repository
|
|
app_id: e8c9892d-30f2-428f-b639-172402acbf94 # The Client ID provided by Gitea
|
|
api_root: https://git.deuxfleurs.fr/api/v1 # API URL of your Gitea instance
|
|
base_url: https://git.deuxfleurs.fr/ # Root URL of your Gitea instance
|
|
# optional, defaults to main
|
|
# branch: main
|
|
locale: 'fr'
|
|
media_folder: "static/images"
|
|
public_folder: "/images"
|
|
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' }
|
|
# - 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
|
|
- label: 'Configuration'
|
|
name: settings
|
|
files:
|
|
- label: 'Configuration du thème'
|
|
name: theme settings
|
|
file: 'hugo_config/_default/theme_settings.toml'
|
|
extension: toml
|
|
fields:
|
|
- label: 'Paramètres'
|
|
name: params
|
|
widget: object
|
|
fields:
|
|
- name: site_logo
|
|
label: "Logo du site"
|
|
widget: image
|
|
hint: "Le logo qui apparaît en haut à gauche sur toutes les pages du site"
|
|
choose_url: true
|
|
- name: favicon
|
|
label: "Favicon"
|
|
widget: image
|
|
hint: "L'icône qui apparaît à côté du nom dans l'onglet"
|
|
- label: Couleur du fond
|
|
name: background_color_class
|
|
widget: select
|
|
hint: Pour choisir la couleur du fond
|
|
options:
|
|
- label: 'Rouge'
|
|
value: 'bg-red'
|
|
- label: 'Bleu'
|
|
value: 'bg-blue'
|
|
- label: 'Vert'
|
|
value: 'bg-green'
|
|
- label: 'Violet'
|
|
value: 'bg-purple'
|
|
- label: '<img class="fit-picture" src="/media/cc0-images/grapefruit-slice-332-332.jpg" alt="Grapefruit slice atop a pile of other slices" />'
|
|
value: 'bg-orange'
|
|
- label: 'Réseaux sociaux'
|
|
name: ananke_socials
|
|
widget: list
|
|
collapsed: true
|
|
summary: '{{fields.name | upper}}'
|
|
add_to_top: false
|
|
label_singular: 'Réseau'
|
|
fields:
|
|
- name: name
|
|
label: 'Réseau social'
|
|
widget: select
|
|
options:
|
|
- label: 'Facebook'
|
|
value: 'facebook'
|
|
- label: 'LinkedIn'
|
|
value: 'linkedin'
|
|
- name: url
|
|
label: 'Lien du compte'
|
|
widget: string
|
|
|