changed way to add pages
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
maximeg 2024-02-22 16:18:25 +01:00
parent 4cd1cd35df
commit cc5818abb9

View file

@ -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