-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathconfig.yml
25 lines (22 loc) · 1.27 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
local_backend: true # run `npx decap-server` to access /admin locally
backend:
name: git-gateway
branch: develop # Branch to update (optional; defaults to master)
accept_roles: #optional - accepts all users if left out
- admin
- editor
media_folder: "assets/img"
collections:
- name: "event" # Used in routes, e.g., /admin/collections/blog
label: "Event" # Used in the UI
folder: "_events" # The path to the folder where the documents are stored
create: true # Allow users to create new documents in this collection
fields: # The fields for each document, usually in front matter
- {label: "Title", name: "title", widget: "string"}
- {label: "Date", name: "date", widget: "datetime", format: "YYYY-MM-DD HH:mm" }
- {label: "Locations", name: "locations", widget: "select", multiple: true, default: ["Berlin"], min: 1, options: ["Berlin", "Global", "Online"]}
- {label: "hide signup form", name: "hide_form", widget: "boolean", default: false}
- {label: "Canonical url", name: "canonical_url", widget: "string", required: false}
- {label: "Tags", name: "tags", widget: "list"}
- {label: "Body", name: "body", widget: "markdown"}
- {label: "Optional image for SEO", name: "image", widget: "image", required: false}