Added preview

parent a784ea49
......@@ -7,6 +7,7 @@ backend:
auth_endpoint: oauth/authorize
media_folder: assets/posts
- name: "blog" # Used in routes, e.g., /admin/collections/blog
......@@ -14,6 +15,8 @@ collections:
folder: "_posts" # The path to the folder where the documents are stored
create: true # Allow users to create new documents in this collection
slug: "{{year}}-{{month}}-{{day}}-{{slug}}" # Filename template, e.g.,
preview_path: "blog/{{year}}/{{month}}/{{day}}/{{slug}}"
preview_path_date_field: "date"
fields: # The fields for each document, usually in front matter
- {label: "Layout", name: "layout", widget: "hidden", default: "post"}
- {label: "Title", name: "title", widget: "string"}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment