Added preview

parent a784ea49
......@@ -7,6 +7,7 @@ backend:
base_url: https://code.eliotberriot.com
auth_endpoint: oauth/authorize
site_url: https://eliotberriot.com
media_folder: assets/posts
collections:
- 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., YYYY-MM-DD-title.md
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