-
Notifications
You must be signed in to change notification settings - Fork 9
/
config.yml
30 lines (29 loc) · 1.83 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
backend:
name: git-gateway
# This line should *not* be indented
media_folder: "images/uploads" # Media files will be stored in the repo under images/uploads
collections: # A list of collections the CMS should be able to edit
# POSTS
- name: "post" # Used in routes, ie.: /admin/collections/:slug/edit
label: "Post" # Used in the UI, ie.: "New Post"
folder: "_posts" # The path to the folder where the documents are stored
sort: "date:desc" # Default is title:asc
create: true # Allow users to create new documents in this collection
slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
fields: # The fields each document in this collection have
- {label: "Layout", name: "layout", widget: "hidden", default: "default"}
- {label: "Title", name: "title", widget: "string", tagname: "h1"}
- {label: "Publish Date", name: "date", widget: "datetime", format: "YYYY-MM-DD HH:mm:ss"}
- {label: "Featured Image", name: "thumbnail", widget: "image", required: false}
- {label: "Body", name: "body", widget: "markdown", required: false}
- {label: "My Angle", name: "myangle", widget: "markdown", required: false}
- {label: "Tags", name: "tags", widget: "string", required: false}
- name: "page" # Used in routes, ie.: /admin/collections/:slug/edit
label: "Page" # Used in the UI, ie.: "New Post"
folder: "pages" # The path to the folder where the documents are stored
fields: # The fields each document in this collection have
- {label: "Layout", name: "layout", widget: "hidden", default: "default"}
- {label: "Title", name: "title", widget: "string", tagname: "h1"}
- {label: "Id", name: "id", widget: "string", required: true}
- {label: "Featured Image", name: "thumbnail", widget: "image", required: false}
- {label: "Body", name: "body", widget: "markdown", required: false}