From d20f365150994612b532565e412a0496fb553f90 Mon Sep 17 00:00:00 2001 From: maximeg Date: Thu, 22 Feb 2024 12:14:29 +0100 Subject: [PATCH] added sectionpages menu --- hugo_config/_default/theme_settings.toml | 1 + static/admin/config.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/hugo_config/_default/theme_settings.toml b/hugo_config/_default/theme_settings.toml index a98fd05..99b127f 100644 --- a/hugo_config/_default/theme_settings.toml +++ b/hugo_config/_default/theme_settings.toml @@ -1,4 +1,5 @@ [params] +sectionPagesMenu = 'main' background_color_class = "bg-red" site_logo = "/images/logo-association-envie-appartagee.png" favicon = "/images/uploads/logo-association-envie-appartagee.png" diff --git a/static/admin/config.yml b/static/admin/config.yml index 6a8faf3..ff60567 100644 --- a/static/admin/config.yml +++ b/static/admin/config.yml @@ -21,7 +21,7 @@ collections: summary: '{{title}}' # optional summary for a tree node, defaults to the inferred title field # adding a path object allows editing the path of entries # moving an existing entry will move the entire sub tree of the entry to the new location - path: { widget: string, index_file: 'index' } + path: { widget: string, index_file: '{{fields.name}}' } fields: - label: Title name: title