Store pages in subfolders

This commit is contained in:
alxshelepenok 2018-11-13 21:00:03 +03:00
parent 2f9c602853
commit cedbed3375

View File

@ -10,7 +10,7 @@ collections:
label: "Posts" label: "Posts"
folder: "content/posts" folder: "content/posts"
create: true create: true
slug: "{{year}}-{{month}}-{{day}}---{{slug}}" slug: "/{{year}}-{{month}}-{{day}}---{{slug}}/index.md"
fields: fields:
- {label: "Template", name: "template", widget: "hidden", default: "post"} - {label: "Template", name: "template", widget: "hidden", default: "post"}
- {label: "Title", name: "title", widget: "string"} - {label: "Title", name: "title", widget: "string"}
@ -26,7 +26,7 @@ collections:
label: "Pages" label: "Pages"
folder: "content/pages" folder: "content/pages"
create: true create: true
slug: "{{slug}}" slug: "/{{slug}}/index.md"
fields: fields:
- {label: "Template", name: "template", widget: "hidden", default: "page"} - {label: "Template", name: "template", widget: "hidden", default: "page"}
- {label: "Title", name: "title", widget: "string"} - {label: "Title", name: "title", widget: "string"}