Skip to content

Commit

Permalink
Add getting started collection to CMS
Browse files Browse the repository at this point in the history
  • Loading branch information
AnimatedSwine37 committed Apr 13, 2024
1 parent 81c8223 commit 74cf86a
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions admin/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,23 @@ backend:
media_folder: "assets/images/uploads"

collections:
- name: 'blog'
label: 'Blog'
folder: '_posts/'
- name: getting-started
label: Getting Started
label_singular: 'Page'
folder: getting-started
media_folder: assets/images/getting-started/{{dirname}}
create: true
# adding a nested object will show the collection folder structure
nested:
depth: 5 # max depth to show in the collection tree
summary: '{{title}}' # optional summary for a tree node, defaults to the inferred title field
fields:
- { name: Title }
- label: Title
name: title
widget: string
- label: Body
name: body
widget: markdown
# adding a meta object with a path property allows editing the path of entries
# moving an existing entry will move the entire sub tree of the entry to the new location
meta: { path: { widget: string, label: 'Path', index_file: 'index' } }

0 comments on commit 74cf86a

Please sign in to comment.