From cc5818abb911ceb6c80207f8caf209058a78fd09 Mon Sep 17 00:00:00 2001 From: maximeg Date: Thu, 22 Feb 2024 16:18:25 +0100 Subject: [PATCH] changed way to add pages --- static/admin/config.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/static/admin/config.yml b/static/admin/config.yml index a68c5b8..b2fdf2c 100644 --- a/static/admin/config.yml +++ b/static/admin/config.yml @@ -11,17 +11,12 @@ media_folder: "static/images" public_folder: "/images" collections: - name: pages - label: Pages + #to build a hugo section (look for it) + label: Pages du site label_singular: 'Page' folder: content/pages + path: '{{slug}}/_index' create: true - # adding a nested object will show the collection folder structure - nested: - depth: 100 # max depth to show in the collection tree - 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: '{{slug}}/index' fields: - label: Titre name: title