-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfig.yml
executable file
·127 lines (123 loc) · 4.34 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
backend:
name: github # Refer to https://www.netlifycms.org/docs/authentication-backends/ for auth backend list and instructions
branch: master # Branch to update
repo: umcptasa/19-20website # Repo for pushing new commits. Make sure to replace with your repo!
media_folder: static/assets
public_folder: assets
collections:
- name: events
label: "Events"
folder: "content/events"
create: true # whether or not new events can be added
slug: "{{slug}}" # unique URL for the created event
fields:
- { label: "Title", name: "title", widget: "string" }
- { label: "Date", name: "date", widget: "datetime" }
- { label: "Cover Image", name: "imgsrc", widget: "image" }
- {
label: "Category",
name: "category",
widget: "hidden",
default: "event",
}
- {
label: "Pinned",
name: "pinned",
widget: "boolean",
required: false,
default: false,
hint: "Pinned to front page and events page",
}
- {
label: "Tags",
name: "tags",
widget: "relation",
collection: "options",
file: "event-tags",
hint: "New tags can be added in the Editable Options collection",
valueField: "options.*",
searchFields: ["options.*"],
default: "select",
multiple: true,
}
- {
label: "Facebook Event Page Link",
name: "link",
widget: "string",
minimal: true,
}
- {
label: "Description",
name: "body",
widget: "markdown",
hint: "Descriptions will get truncated for previews. The full description will be used on the individual event page",
}
- name: bios
identifier_field: name
label: "Bios"
folder: "content/bios"
create: true
fields:
- { label: "Name", name: "name", widget: "string" }
- {
label: "Category",
name: "category",
widget: "hidden",
default: "bio",
}
- {
label: "Profile Picture",
name: "imgsrc",
widget: "image",
hint: "Square images are preferred!",
}
# This could be changed to a select widget that provides a dropdown of possible positions.
# You would have to update the list of positions in this file though
# https://www.netlifycms.org/docs/widgets/#select
- {
label: "Position",
name: "position",
widget: "relation",
collection: "options",
file: "bio-order",
hint: "New positions can be added in the Editable Options collection",
valueField: "options.*",
searchFields: ["options.*"],
default: "select",
}
- {
label: "Major(s)",
name: "majors",
widget: "list",
required: true,
allow_add: true,
hint: "Separate multiple majors with commas. Spaces after commas will be automatically added",
}
- {
label: "Description",
name: "body",
widget: "markdown",
required: false,
default: "No bio",
}
- name: options
identifier_field: title
label: "Editable Options"
create: false
folder: "content/options"
fields:
- { label: "Title", name: "title", widget: "string" }
- {
label: "Category",
name: "category",
widget: "hidden",
default: "options",
}
- {
label: "Options",
name: "options",
allow_add: true,
widget: "list",
collapsed: false,
hint: "Order of this list determines order on site where applicable. Spaces after commas will be automatically added",
}