-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yml
85 lines (83 loc) · 5.13 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
backend:
name: git-gateway
media_folder: "site/static/img" # Folder where user uploaded files should go
public_folder: "img"
collections: # A list of collections the CMS should be able to edit
- name: "post" # Used in routes, ie.: /admin/collections/:slug/edit
label: "Post" # Used in the UI, ie.: "New Post"
folder: "site/content/post" # The path to the folder where the documents are stored
create: true # Allow users to create new documents in this collection
extension: json #Prabu added
fields: # The fields each document in this collection have
- {label: "Title", name: "title", widget: "string"}
- {label: "Publish Date", name: "date", widget: "datetime"}
- {label: "Intro Blurb", name: "description", widget: "text"}
- {label: "Image", name: "image", widget: "image", required: false}
- {label: "Features", name: "features", widget: "relation", collection: "pages", searchFields: ["title"], valueField: "features"}
- {label: "Body", name: "body", widget: "markdown"}
- name: "pages"
label: "Pages"
files:
- file: "site/content/_index.md"
label: "Home Page"
name: "home"
fields:
- {label: Title, name: title, widget: string}
- {label: Subtitle, name: subtitle, widget: string}
- {label: Image, name: image, widget: image}
- {label: "Blurb", name: blurb, widget: object, fields: [
{label: "Heading", name: "heading", widget: string},
{label: "Text", name: "text", widget: "text"}]}
- {label: "Intro", name: intro, widget: object, fields: [
{label: "Heading", name: "heading", widget: string},
{label: "Text", name: "text", widget: "text"}]}
- {label: "Products", name: products, widget: list, fields: [
{label: "Image", name: "image", widget: "image"},
{label: "Text", name: "text", widget: "text"}]}
- {label: "Values", name: "values", widget: "object", fields: [
{label: "Heading", name: "heading", widget: string},
{label: "Text", name: "text", widget: "text"}]}
- file: "site/content/contact/_index.md"
label: "Contact Page"
name: "contact"
fields:
- {label: Title, name: title, widget: string}
- {label: Logo, name: logo, widget: image}
- {label: Body, name: body, widget: markdown}
- label: Contact Entries
name: contact_entries
widget: list
fields:
- label: Heading
name: heading
widget: string
- label: Text
name: text
widget: text
- file: "site/content/products/_index.md"
label: "Products Page"
name: "products"
fields:
- {label: Title, name: title, widget: string}
- {label: Image, name: image, widget: image}
- {label: Heading, name: heading, widget: string}
- {label: Description, name: description, widget: string}
- {label: Features, name: features, widget: list, default: ["super", "very super"]}
- {label: Intro, name: intro, widget: object, fields: [{label: Heading, name: heading, widget: string}, {label: Description, name: description, widget: text}, {label: Blurbs, name: blurbs, widget: list, fields: [{label: Image, name: image, widget: image}, {label: Text, name: text, widget: text}]}]}
- {label: Main, name: main, widget: object, fields: [{label: Heading, name: heading, widget: string}, {label: Description, name: description, widget: text}, {label: Image1, name: image1, widget: object, fields: [{label: Image, name: image, widget: image}, {label: Alt, name: alt, widget: string}]}, {label: Image2, name: image2, widget: object, fields: [{label: Image, name: image, widget: image}, {label: Alt, name: alt, widget: string}]}, {label: Image3, name: image3, widget: object, fields: [{label: Image, name: image, widget: image}, {label: Alt, name: alt, widget: string}]}]}
- {label: Testimonials, name: testimonials, widget: list, fields: [{label: Quote, name: quote, widget: string}, {label: Author, name: author, widget: string}]}
- {label: Full_image, name: full_image, widget: image}
- {label: Pricing, name: pricing, widget: object, fields: [{label: Heading, name: heading, widget: string}, {label: Description, name: description, widget: string}, {label: Plans, name: plans, widget: list, fields: [{label: Plan, name: plan, widget: string}, {label: Price, name: price, widget: string}, {label: Description, name: description, widget: string}, {label: Items, name: items, widget: list}]}]}
- file: "site/content/values/_index.md"
label: "Values Page"
name: "values"
fields:
- {label: Title, name: title, widget: string}
- {label: Image, name: image, widget: image}
- label: Values
name: values
widget: list
fields:
- {label: Heading, name: heading, widget: string}
- {label: Text, name: text, widget: text}
- {label: Image, name: imageUrl, widget: image}