From 0037280ce4640523a8fb5ebaaca3dbb44125b430 Mon Sep 17 00:00:00 2001 From: maximeg Date: Sun, 25 Feb 2024 18:24:38 +0100 Subject: [PATCH] added menu edition --- content/pages/Contactez-nous/_index.md | 9 +++++ hugo_config/_default/hugo.toml | 2 +- hugo_config/_default/theme_settings.toml | 6 +++- static/admin/config.yml | 44 ++++++++++++------------ 4 files changed, 37 insertions(+), 24 deletions(-) create mode 100644 content/pages/Contactez-nous/_index.md diff --git a/content/pages/Contactez-nous/_index.md b/content/pages/Contactez-nous/_index.md new file mode 100644 index 0000000..6c0b66d --- /dev/null +++ b/content/pages/Contactez-nous/_index.md @@ -0,0 +1,9 @@ +--- +title: Contactez-nous +Description: C'est la description de la page +description: c'est la deuxième description de la page +featured_image: images/vlcsnap-2022-08-13-18h09m04s198.png +--- +Vous pouvez nous contactez par mail à contact@envieappartagee.fr + +Retrouvez aussi l'Association Envie Appart'Âgée sur Facebook, Linkedin et Hello Asso diff --git a/hugo_config/_default/hugo.toml b/hugo_config/_default/hugo.toml index a1147b3..baa2aec 100644 --- a/hugo_config/_default/hugo.toml +++ b/hugo_config/_default/hugo.toml @@ -1,6 +1,6 @@ baseURL = 'https://palettetest.web.deuxfleurs.fr/' languageCode = 'fr' -title = 'My New Hugo Site' +title = 'Palette Test' theme = 'ananke' #sectionPagesMenu = "main" diff --git a/hugo_config/_default/theme_settings.toml b/hugo_config/_default/theme_settings.toml index 30eaa6c..3aac04a 100644 --- a/hugo_config/_default/theme_settings.toml +++ b/hugo_config/_default/theme_settings.toml @@ -24,4 +24,8 @@ weight = "1" [[menus.main]] name = "Page de test" url = "/pages/" -weight = "1" \ No newline at end of file +weight = "1" + +[[menus.main]] +name = "Contactez-nous" +url = "/pages/contactez-nous/" \ No newline at end of file diff --git a/static/admin/config.yml b/static/admin/config.yml index 9c2ccd9..c33d416 100644 --- a/static/admin/config.yml +++ b/static/admin/config.yml @@ -101,28 +101,28 @@ 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 + - 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