changed way to add pages
This commit is contained in:
parent
4cd1cd35df
commit
cc5818abb9
1 changed files with 3 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue