menu try
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
maximeg 2024-02-22 13:28:55 +01:00
parent aa5a658e20
commit cbe7552f34
3 changed files with 28 additions and 2 deletions

View file

@ -49,10 +49,11 @@ collections:
name: theme settings
file: 'hugo_config/_default/theme_settings.toml'
extension: toml
fields:
- label: 'Paramètres'
fields:
- label: 'Paramètres du thème'
name: params
widget: object
collapsed: true
fields:
- name: site_logo
label: "Logo du site"
@ -97,4 +98,29 @@ collections:
- name: url
label: 'Lien du compte'
widget: string
- label: 'Paramètres du menu'
name: menus
widget: object
collapsed: true
fields:
- label: 'Menu en haut'
name: main
widget: list
collapsed: true
summary: '{{fields.name | upper}}'
add_to_top: false
label_singular: 'Sous menu'
fields:
- label: 'Nom dans le menu'
name: name
widget: string
- label: 'Page référencée'
name: pageRef
widget: string
- label: 'Poids'
name: weight
widget: number