forked from SLoh4137/umcp-tase
-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.yml
executable file
·170 lines (164 loc) · 5.55 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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
backend:
name: github # Refer to https://www.netlifycms.org/docs/authentication-backends/ for auth backend list and instructions
branch: master # Branch to update
repo: UMCP-TASA/website # Repo for pushing new commits. Make sure to replace with your repo!
media_folder: static/assets
public_folder: static/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: [],
multiple: true,
}
- {
label: "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
sortableFields: ["name", "position"]
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!",
}
- name: board2022
identifier_field: name
label: "Board2022"
folder: "content/board2022"
create: true
sortableFields: ["name", "position"]
fields:
- { label: "Name", name: "name", widget: "string" }
- {
label: "Category",
name: "category",
widget: "hidden",
default: "board2022",
}
- {
label: "Profile Picture",
name: "imgsrc",
widget: "image",
hint: "Square images are preferred!",
}
- name: board2023
identifier_field: name
label: "Board2023"
folder: "content/board2023"
create: true
sortableFields: ["name", "position"]
fields:
- { label: "Name", name: "name", widget: "string" }
- {
label: "Category",
name: "category",
widget: "hidden",
default: "board2023",
}
- {
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: [],
}
- {
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",
}