-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.yml
262 lines (261 loc) · 15.1 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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
---
kate: hl yaml;
layout: null
---
backend:
name: github
repo: {{ site.repository }} # Path to your Github repository
branch: master # Branch to update (master by default)
# base_url: https://cmsauth.beta-europe.org # Path to ext auth provider
{% raw %}
media_folder: "assets/images" # Folder where user uploaded files should go
logo_url: "https://www.beta-europe.org/assets/images/beta-logo-200-transparent.png"
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: "_posts" # The path to the folder where the documents are stored
sort: "date:desc" # Default is title:asc
create: true # Allow users to create new documents in this collection
slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
#meta: # Meta data fields. Just like fields, but without any preview element
fields: # The fields each document in this collection have
- {label: "Title", name: "title", widget: "string", tagname: "h1"}
- {label: "Post Excerpt (used in archive)", name: "excerpt", widget: "string"}
- {label: "Link Type Post (leave empty for normal posts)", name: "link", widget: "string", required: false}
- {label: "Body", name: "body", widget: "markdown"}
- {label: "Categories", name: "categories", widget: "select", options: ["association", "network"], required: false}
- {label: "Tags", name: "tags", widget: "list", required: false}
- {label: "Publish Date", name: "date", widget: "datetime", format: "YYYY-MM-DD hh:mm:ss"}
- {label: "Show Table of Contents", name: "toc", widget: "boolean", default: false, required: false}
- {label: "Comments", name: "comments", widget: "boolean", default: false, required: false}
- {label: "Social Share", name: "share", widget: "boolean", default: true, required: false}
- {label: "Published", name: "published", widget: "boolean", default: true, required: false}
- {label: "Show Edit Source", name: "edit", widget: "boolean", default: true, required: false}
- label: "Cover Image"
name: "header"
widget: "object"
required: false
fields:
- {label: "Image", name: "image", widget: "image", required: false}
- {label: "Thumbnail for Image", name: "teaser", widget: "image", required: false}
- {label: "Label (e.g. for credit)", name: "credit", widget: "string", required: false}
- name: "pages"
label: "Pages"
folder: "_pages"
slug: "{{slug}}"
create: true
fields:
- {label: "Title", name: "title", widget: "string", tagname: "h1", required: true}
- {label: "Modified Date", name: "modified", widget: "datetime", required: true}
- {label: "Excerpt", name: "excerpt", widget: "string", reqired: false}
- {label: "Show Table of Contents", name: "toc", widget: "boolean", default: false, required: false}
- {label: "Social Share", name: "share", widget: "boolean", default: true, required: false}
- {label: "Published", name: "published", widget: "boolean", default: true, required: false}
- {label: "Show Edit Source", name: "edit", widget: "boolean", default: true, required: false}
- {label: "Body", name: "body", widget: "markdown"}
- label: "Cover Image"
name: "header"
widget: "object"
required: false
fields:
- {label: "Image", name: "image", widget: "image", required: false}
- {label: "Thumbnail for Image", name: "teaser", widget: "image", required: false}
- {label: "Label (e.g. for credit)", name: "credit", widget: "string", required: false}
- {label: "Show Author/Organisation Profile", name: "author_profile", widget: "boolean", required: false, default: true}
- label: "Sidebar"
name: "sidebar"
widget: "object"
required: false
fields:
- {label: "Title", name: "title", widget: "string", required: false}
- {label: "Navigation Element", name: "nav", widget: "string", required: false}
- {label: "Image", name: "image", widget: "image", required: false}
- {label: "Image Description", name: "image_alt", widget: "string", required: false}
- {label: "Text", name: "text", widget: "markdown", required: false}
- name: "partner"
label: "Partner"
folder: "_partners"
sort: "title:asc"
create: true
slug: "{{slug}}"
fields:
- {label: "Slug", name: "slug", widget: "string", required: true}
- {label: "Title", name: "title", widget: "string", required: true}
- {label: "Website (e.g. http://meu.eu)", name: "website", widget: "string"}
- {label: "Twitter Handle (without at)", name: "twitter", widget: "string", required: false}
- {label: "Mail", name: "mail", widget: "string", required: false}
- {label: "Linkedin (e.g. http://linkedin.com/BETAEU)", name: "linkedin", widget: "string", required: false}
- {label: "Instagram (e.g. BetaEU)", name: "instagram", widget: "string", required: false}
- {label: "Facebook (e.g. http://facebook.com/betaEU)", name: "facebook", widget: "string", required: false}
- {label: "Excerpt (used in Partner Overview)", name: "excerpt", widget: "string", required: false}
- {label: "President", name: "president", widget: "string", required: false}
- {label: "Country", name: "country", widget: "string", required: false}
- {label: "Town", name: "town", widget: "string", required: false}
- {label: "Location", name: "location", widget: "string", required: false}
- {label: "Members", name: "members", widget: "string", required: false}
- {label: "Geo Location (e.g.: 52.2333,20.8891)", name: "geo", widget: "string", required: false}
# - {label: "conferences", name: "conferences", widget: "relation", collection: "conference", searchFields: ["conference"], valueField: "conference"}
- {label: "Partner Description", name: "body", widget: "markdown", required: false}
- label: "Cover Image"
name: "header"
widget: "object"
required: false
fields:
- {label: "Image", name: "image", widget: "image", required: false}
- {label: "Thumbnail for Partner Overview", name: "teaser", widget: "image", required: false}
- {label: "Label (e.g. for credit)", name: "credit", widget: "string", required: false}
{% endraw %}{% if site.cms.has_members %}{% raw %}
- name: "member"
label: "Members"
folder: "_members"
sort: "title:asc"
create: true
slug: "{{slug}}"
fields:
- {label: "Slug", name: "slug", widget: "string", required: true}
- {label: "Title", name: "title", widget: "string", required: true}
- {label: "Website (e.g. http://meu.eu)", name: "website", widget: "string"}
- {label: "Twitter Handle (without at)", name: "twitter", widget: "string", required: false}
- {label: "Mail", name: "mail", widget: "string", required: false}
- {label: "Linkedin (e.g. http://linkedin.com/BETAEU)", name: "linkedin", widget: "string", required: false}
- {label: "Instagram (e.g. BetaEU)", name: "instagram", widget: "string", required: false}
- {label: "Facebook (e.g. http://facebook.com/betaEU)", name: "facebook", widget: "string", required: false}
- {label: "Excerpt (used in Partner Overview)", name: "excerpt", widget: "string", required: false}
- {label: "President", name: "president", widget: "string", required: false}
- {label: "Country", name: "country", widget: "string", required: false}
- {label: "Town", name: "town", widget: "string", required: false}
- {label: "Location", name: "location", widget: "string", required: false}
- {label: "Geo Location (e.g.: 52.2333,20.8891)", name: "geo", widget: "string", required: false}
# - {label: "conferences", name: "conferences", widget: "relation", collection: "conference", searchFields: ["conference"], valueField: "conference"}
- {label: "Member Description", name: "body", widget: "markdown", required: false}
- label: "Cover Image"
name: "header"
widget: "object"
required: false
fields:
- {label: "Image", name: "image", widget: "image", required: false}
- {label: "Thumbnail for Member Overview", name: "teaser", widget: "image", required: false}
- {label: "Label (e.g. for credit)", name: "credit", widget: "string", required: false}
{% endraw %}{% endif %}{% if site.cms.has_observers %}{% raw %}
- name: "observer"
label: "Observers"
folder: "_observers"
sort: "title:asc"
create: true
slug: "{{slug}}"
fields:
- {label: "Slug", name: "slug", widget: "string", required: true}
- {label: "Title", name: "title", widget: "string", required: true}
- {label: "Website (e.g. http://meu.eu)", name: "website", widget: "string"}
- {label: "Twitter Handle (without at)", name: "twitter", widget: "string", required: false}
- {label: "Mail", name: "mail", widget: "string", required: false}
- {label: "Linkedin (e.g. http://linkedin.com/BETAEU)", name: "linkedin", widget: "string", required: false}
- {label: "Instagram (e.g. BetaEU)", name: "instagram", widget: "string", required: false}
- {label: "Facebook (e.g. http://facebook.com/betaEU)", name: "facebook", widget: "string", required: false}
- {label: "Excerpt (used in Partner Overview)", name: "excerpt", widget: "string", required: false}
- {label: "President", name: "president", widget: "string", required: false}
- {label: "Country", name: "country", widget: "string", required: false}
- {label: "Town", name: "town", widget: "string", required: false}
- {label: "Location", name: "location", widget: "string", required: false}
- {label: "Members (in Member association)", name: "members", widget: "string", required: false}
- {label: "Geo Location (e.g.: 52.2333,20.8891)", name: "geo", widget: "string", required: false}
# - {label: "conferences", name: "conferences", widget: "relation", collection: "conference", searchFields: ["conference"], valueField: "conference"}
- {label: "Member Description", name: "body", widget: "markdown", required: false}
- label: "Cover Image"
name: "header"
widget: "object"
required: false
fields:
- {label: "Image", name: "image", widget: "image", required: false}
- {label: "Thumbnail for Member Overview", name: "teaser", widget: "image", required: false}
- {label: "Label (e.g. for credit)", name: "credit", widget: "string", required: false}
{% endraw %}{% endif %}{% if site.cms.has_conference %}{% raw %}
- name: "conference"
label: "Conference"
folder: "_conferences"
sort: "title:asc"
create: true
slug: "{{slug}}"
fields:
- {label: "Title (e.g. MEU Strasbourg 2015)", name: "title", widget: "string", required: true}
- {label: "Slug (e.g. meu-strasbourg-2015)", name: "slug", widget: "string", required: true}
- {label: "Partner Slug (e.g. beta-france)", name: "partner-slug", widget: "relation", collection: "partner", searchFields: ["title"], valueField: "slug", required: false}
- {label: "Conference Series (e.g. meu-strasbourg)", name: "conference", widget: "string", required: true}
- {label: "Year", name: "year", widget: "number", valueType: "int", required: true, pattern: ['\d{4}', "Provide conference year."], default: 2018}
- {label: "Conference Start", name: "begin", widget: "date", format: "YYYY-MM-DD", required: true}
- {label: "Conference End", name: "end", widget: "date", format: "YYYY-MM-DD", required: true}
- {label: "Mail", name: "mail", widget: "string", required: false}
- {label: "Website (e.g. http://mywebsite.eu)", name: "website", widget: "string", required: true}
- {label: "Twitter Handle (without at)", name: "twitter", widget: "string", required: false, pattern: ['[A-Za-z0-9_]{1,20}', "Provide Twitter handle without @."]}
- {label: "Country", name: "country", widget: "string", required: false}
- {label: "Town", name: "town", widget: "string", required: false}
- {label: "Location", name: "location", widget: "string", required: false}
- {label: "Participant Number", name: "participants", widget: "string", required: false}
- {label: "Geo Location (e.g.: 52.2333,20.8891)", name: "geo", widget: "string", required: false}
- {label: "Topic Excerpt (used in archive)", name: "excerpt", widget: "string", required: false}
- {label: "Conference Description", name: "body", widget: "markdown", required: false}
- label: "Cover Image"
name: "header"
widget: "object"
required: false
fields:
- {label: "Image", name: "image", widget: "image", required: false}
- {label: "Thumbnail for Image", name: "teaser", widget: "image", required: false}
- {label: "Label (e.g. for credit)", name: "credit", widget: "string", required: false}
{% endraw %}{% endif %}{% raw %}
- name: "teammember" # Used in routes, ie.: /admin/collections/:slug/edit
label: "TeamMembers" # Used in the UI, ie.: "New Post"
folder: "_teammembers" # The path to the folder where the documents are stored
sort: "order:asc" # Default is title:asc
create: true # Allow users to create new documents in this collection
slug: "{{slug}}"
fields: # The fields each document in this collection have
- {label: "Slug", name: "slug", widget: "string", required: true}
- {label: "Order", name: "order", widget: "string", required: true}
- {label: "Name of Teammember", name: "nameTM", widget: "string", required: true}
- {label: "Function", name: "function", widget: "string", required: true}
- {label: "Mail", name: "mail", widget: "string"}
- label: "Cover Image"
name: "header"
widget: "object"
required: false
fields:
- {label: "Image", name: "image", widget: "image", required: false}
- {label: "Thumbnail for Image", name: "teaser", widget: "image", required: false}
- {label: "Label (e.g. for credit)", name: "credit", widget: "string", required: false}
{% endraw %}{% raw %}
- name: "settings"
label: "Settings"
files:
- name: "navigations"
label: "Navigations"
file: "_data/navigation.yml"
fields:
- name: "main"
label: "Main Navigation"
widget: list
fields:
- name: title
label: "Label"
widget: string
- name: url
label: "URL (e.g. /about/ or https://twitter.com)"
widget: string
- name: "teams"
label: "Teams Sidebar"
widget: list
fields:
- name: title
label: "Team Label"
widget: string
- name: children
label: "Navigation Elements"
widget: list
fields:
- name: title
label: "Label"
widget: string
- name: url
label: "URL (e.g. /about/ or https://twitter.com)"
widget: string
{% endraw %}