admin: restore nested mode (with subject _index.md titles so tree shows named folders)

This commit is contained in:
sam
2026-09-10 15:34:43 +10:00
parent 70b88d7b02
commit 6bf9f47780

View File

@@ -29,6 +29,11 @@ collections:
folder: subjects folder: subjects
create: true create: true
slug: "{{slug}}" slug: "{{slug}}"
# nested mode: shows subjects/<subject>/<slug>/ tree (Decap-native for subfolders)
nested:
depth: 2
meta:
path: { widget: string, label: Path, index_file: _index, editable_folder: false, searchable: false }
sortable_fields: [date, title] sortable_fields: [date, title]
fields: fields:
- { name: title, label: Title, widget: string } - { name: title, label: Title, widget: string }