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