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

263 lines
7.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: "/static/images"
media_library:
name: Bibliothèque
config:
max_file_size: 1024000
collections:
- name: page principale
icon: homePage
label: Page principale
label_singular: Page principale
create: false
destroy: false
description: >
Créez vos propre pages
folder: content/blog
slug: '{{year}}-{{month}}-{{day}}-{{slug}}'
summary_fields:
- title
- date
sortable_fields:
fields:
- title
- date
default:
field: title
view_filters:
filters:
- name: posts-with-index
label: Posts With Index
field: title
pattern: 'This is post #'
- name: posts-without-index
label: Posts Without Index
field: title
pattern: front matter post
view_groups:
groups:
- name: by-year
label: Year
field: date
pattern: '\d{4}'
fields:
- label: Title
name: title
widget: string
- label: Publish Date
name: date
widget: datetime
date_format: yyyy-MM-dd
time_format: 'HH:mm'
format: "yyyy-MM-dd'T'HH:mm:ss.SSSXXX"
- label: Cover Image
name: image
widget: image
required: false
- label: Body
name: body
widget: markdown
hint: "*Main* __content__ __*goes*__ [here](https://example.com/)."
- name: pages
#to build a hugo section (look for it)
label: Pages du site
icon: postPage
label_singular: 'Page'
folder: content/pages
#path: '{{slug}}/_index'
create: true
nested:
depth: 100
fields:
- label: Titre
name: title
widget: string
- label: Description
name: description
widget: text
- label: Image de couverture
name: featured_image
widget: image
media_folder: "/static/images"
public_folder: "/images"
- label: Corps
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
# - name: posts
# icon: postPage
# label: Posts
# label_singular: Post
# description: >
# The description is a great place for tone setting, high level information,
# and editing guidelines that are specific to a collection.
# folder: content/_posts
# slug: '{{year}}-{{month}}-{{day}}-{{slug}}'
# summary_fields:
# - title
# - date
# sortable_fields:
# fields:
# - title
# - date
# default:
# field: title
# create: true
# view_filters:
# filters:
# - name: posts-with-index
# label: Posts With Index
# field: title
# pattern: 'This is post #'
# - name: posts-without-index
# label: Posts Without Index
# field: title
# pattern: front matter post
# - name: draft
# label: Drafts
# field: draft
# pattern: true
# view_groups:
# groups:
# - name: by-year
# label: Year
# field: date
# pattern: '\d{4}'
# - name: draft
# label: Drafts
# field: draft
# fields:
# - label: Title
# name: title
# widget: string
# - label: 'Draft'
# name: 'draft'
# widget: 'boolean'
# default: false
# - label: Publish Date
# name: date
# widget: datetime
# date_format: yyyy-MM-dd
# time_format: 'HH:mm'
# format: "yyyy-MM-dd'T'HH:mm:ss.SSSXXX"
# - label: Cover Image
# name: image
# widget: image
# required: false
# - label: Description
# name: description
# widget: text
# - label: Category
# name: category
# widget: string
# - label: Body
# name: body
# widget: markdown
# hint: '*Main* __content__ __*goes*__ [here](https://example.com/).'
# - label: Tags
# name: tags
# widget: list
- name: settings
label: 'Configuration'
icon: settingsPage
files:
- label: 'Configuration du thème'
name: theme settings
file: 'hugo_config/_default/theme_settings.toml'
extension: toml
fields:
- label: 'Paramètres du thème'
name: params
widget: object
collapsed: true
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
- label: 'Paramètres du menu'
name: menus
widget: object
collapsed: true
fields:
- label: 'Menu supérieur'
name: main
widget: list
collapsed: true
summary: '{{fields.name | upper}}'
add_to_top: false
label_singular: 'Section'
fields:
- label: 'Nom dans le menu'
name: name
widget: string
- label: 'Page référencée'
name: url
widget: string
- label: 'Poids'
name: weight
widget: number