adapted cms to hopefully respect layouting
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 45s
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 45s
This commit is contained in:
@@ -13,14 +13,26 @@ collections:
|
|||||||
label: "Blog Posts" # Used in the UI
|
label: "Blog Posts" # Used in the UI
|
||||||
folder: "content/blog/posts" # The path to the folder where the documents are stored
|
folder: "content/blog/posts" # The path to the folder where the documents are stored
|
||||||
create: true # Allow users to create new documents in this collection
|
create: true # Allow users to create new documents in this collection
|
||||||
slug: "{{year}}-{{month}}-{{day}}-{{slug}}" # Filename template
|
path: "{{year}}-{{month}}-{{day}}-{{title}}/index"
|
||||||
fields: # The fields for each document
|
media_folder: ""
|
||||||
- {label: "Title", name: "title", widget: "string"}
|
public_folder: ""
|
||||||
- {label: "Publish Date", name: "date", widget: "datetime"}
|
slug: "index" # Filename template
|
||||||
- {label: "Featured Image", name: "image", widget: "image", required: false}
|
editor:
|
||||||
- {label: "Description", name: "description", widget: "text"}
|
preview: false
|
||||||
- {label: "Categories", name: "categories", widget: "list", required: false}
|
fields:
|
||||||
- {label: "Tags", name: "tags", widget: "list", required: false}
|
- { label: "Layout", name: "layout", widget: "hidden", default: "post" }
|
||||||
- {label: "Draft", name: "draft", widget: "boolean", default: false}
|
- { label: "Title", name: "title", widget: "string" }
|
||||||
- {label: "Body", name: "body", widget: "markdown"}
|
- { label: "Summary", name: "summary", widget: "string" }
|
||||||
|
- { label: "Description", name: "description", widget: "string" }
|
||||||
|
- {
|
||||||
|
label: "Authors",
|
||||||
|
name: "authors",
|
||||||
|
widget: "select",
|
||||||
|
multiple: true,
|
||||||
|
options: ["bob", "jane", "peter", "kate"],
|
||||||
|
}
|
||||||
|
- { label: "Date", name: "date", widget: "datetime" }
|
||||||
|
- { label: "Draft", name: "draft", widget: "boolean", default: true }
|
||||||
|
- { label: "Cover Image", name: "image", widget: "image" }
|
||||||
|
- { label: "Body", name: "body", widget: "markdown" }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user