From cbe7552f34cdd30e8872c38c68d9c09ff6f42cea Mon Sep 17 00:00:00 2001 From: maximeg Date: Thu, 22 Feb 2024 13:28:55 +0100 Subject: [PATCH] menu try --- .../Revue de presse/{_index.md => index.md} | 0 content/pages/{_index.md => index.md} | 0 static/admin/config.yml | 30 +++++++++++++++++-- 3 files changed, 28 insertions(+), 2 deletions(-) rename content/pages/Revue de presse/{_index.md => index.md} (100%) rename content/pages/{_index.md => index.md} (100%) diff --git a/content/pages/Revue de presse/_index.md b/content/pages/Revue de presse/index.md similarity index 100% rename from content/pages/Revue de presse/_index.md rename to content/pages/Revue de presse/index.md diff --git a/content/pages/_index.md b/content/pages/index.md similarity index 100% rename from content/pages/_index.md rename to content/pages/index.md diff --git a/static/admin/config.yml b/static/admin/config.yml index ff60567..8c3325e 100644 --- a/static/admin/config.yml +++ b/static/admin/config.yml @@ -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 + + +