-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yml
56 lines (50 loc) · 2.33 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
backend:
name: git-gateway
branch: master # Branch to update (optional; defaults to master)
publish_mode: editorial_workflow
media_folder: "site/static/images/uploads" # Media files will be stored in the repo under static/images/uploads
public_folder: "/images/uploads" # The src attribute for uploaded media will begin with /images/uploads
collections:
- name: 'products'
label: 'Product'
folder: 'site/content/products'
slug: "{{slug}}"
create: true
fields:
- {label: "Name", name: "title", widget: "string" }
- {label: "SKU", name: "sku", widget: "string" }
- {label: "Price", name: "price", widget: "number"}
- {label: "Image", name: "image", widget: "image"}
- {label: "Description", name: "description", widget: "text"}
- {label: "Slug", name: "slug", widget: "string" }
- {label: "Categories", name: "categories", widget: "list"}
- label: "Settings"
name: "Settings"
delete: false
editor:
preview: false
files:
- name: "delivery_days"
label: "Delivery Days"
file: "site/data/delivery_days.json"
description: "Choose available delivery and pickup days"
fields:
- {label: "Sundays", name: "sundays", widget: "boolean", required: false}
- {label: "Mondays", name: "mondays", widget: "boolean", required: false}
- {label: "Tuesdays", name: "tuesdays", widget: "boolean", required: false}
- {label: "Wednesdays", name: "wednesdays", widget: "boolean", required: false}
- {label: "Thursdays", name: "thursdays", widget: "boolean", required: false}
- {label: "Fridays", name: "fridays", widget: "boolean", required: false}
- {label: "Saturdays", name: "saturdays", widget: "boolean", required: false}
- name: "date_settings"
label: "Date Settings"
file: "site/data/date_settings.json"
description: "Set blackout dates"
fields:
- label: "Blackout Dates"
name: "blackout_dates"
widget: "list"
fields:
- {label: "Note", name: "note", widget: "string", required: true}
- {label: "Start Date", name: "start_date", widget: "date", required: true, format: "YYYY-MM-DD"}
- {label: "End Date", name: "end_date", widget: "date", required: true, format: "YYYY-MM-DD"}