menu try
This commit is contained in:
parent
aa5a658e20
commit
cbe7552f34
3 changed files with 28 additions and 2 deletions
|
@ -49,10 +49,11 @@ collections:
|
||||||
name: theme settings
|
name: theme settings
|
||||||
file: 'hugo_config/_default/theme_settings.toml'
|
file: 'hugo_config/_default/theme_settings.toml'
|
||||||
extension: toml
|
extension: toml
|
||||||
fields:
|
fields:
|
||||||
- label: 'Paramètres'
|
- label: 'Paramètres du thème'
|
||||||
name: params
|
name: params
|
||||||
widget: object
|
widget: object
|
||||||
|
collapsed: true
|
||||||
fields:
|
fields:
|
||||||
- name: site_logo
|
- name: site_logo
|
||||||
label: "Logo du site"
|
label: "Logo du site"
|
||||||
|
@ -97,4 +98,29 @@ collections:
|
||||||
- name: url
|
- name: url
|
||||||
label: 'Lien du compte'
|
label: 'Lien du compte'
|
||||||
widget: string
|
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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue