-
Notifications
You must be signed in to change notification settings - Fork 3
/
cloudcannon.config.yml
494 lines (494 loc) · 10.7 KB
/
cloudcannon.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
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
source: src
paths:
static: ''
uploads: assets/images
data: _data
includes: _includes
layouts: _includes
collections: ''
pages: ''
collections_config:
pages:
path: pages
output: true
filter:
base: strict
exclude:
- tags.md
icon: laptop_mac
_enabled_editors:
- visual
add_options:
- name: Add New Page
icon: pages
schema: default
create:
path: '[relative_base_path]/{title|slugify}.md'
disable_add: false
disable_add_folder: false
disable_file_actions: false
_inputs:
permalink:
comment: The relative url that this page should be located (e.g. /page-name/)
schemas:
default:
path: .cloudcannon/schemas/page.md
reorder_inputs: true
hide_extra_inputs: false
remove_empty_inputs: false
remove_extra_inputs: false
name: New Page
icon: notes
_editables:
_enabled_editors:
_inputs:
_select_data:
_structures:
new_preview_url: /
posts:
path: pages/blog
output: true
icon: article
_enabled_editors:
- content
- visual
_inputs:
tags:
type: array
options:
allow_create: true
empty_type: array
cascade: true
tags[*]:
type: text
cascade: true
permalink:
comment: Override the relative url for this pages location (by default it will be at /blog/page-name/ if you don't set anything here)
add_options:
- name: Add New Post
icon: post_add
schema: default
create:
path: '[relative_base_path]/{title|slugify}.md'
disable_add: false
disable_add_folder: false
disable_file_actions: false
schemas:
default:
path: .cloudcannon/schemas/post.md
reorder_inputs: true
hide_extra_inputs: false
remove_empty_inputs: false
remove_extra_inputs: true
data:
output: false
icon: data_usage
disable_add: true
disable_add_folder: true
disable_file_actions: false
collection_groups:
- heading: Pages
collections:
- pages
- heading: Blogging
collections:
- posts
- heading: Data
collections:
- data
file_config:
- glob: pages/blog.md
_inputs:
permalink:
hidden: true
- glob: _data/icons.json
_inputs:
$:
comment: Add an icon from the list of [Font Awesome icons](https://fontawesome.com/search?o=r&m=free&s=solid).
label: Icons
- glob: _data/colors.json
_inputs:
$:
label: Colors
type: array
options:
structures:
values:
- label: Color
icon: palette
value:
name:
value:
_inputs:
value:
type: color
data_config:
icons: true
colors: true
_inputs:
draft:
type: checkbox
hidden: true
eleventyExcludeFromCollections:
hidden: true
pagination.data:
hidden: true
pagination.alias:
hidden: true
pagination.size:
type: number
comment: The number of collection items to list per page
cascade: true
markdown_content:
type: markdown
options:
allow_resize: true
allow_custom_markup: false
remove_custom_markup: false
initial_height: 320
blockquote: true
bold: true
bulletedlist: true
code: true
copyformatting: true
embed: true
format: p h1 h2 h3 h4
horizontalrule: true
image: true
image_size_attributes: true
italic: true
link: true
numberedlist: true
redo: true
removeformat: true
strike: true
subscript: true
superscript: true
table: true
underline: true
undo: true
cascade: true
image_path:
type: image
options:
paths:
uploads: src/assets/images
static: .
accepts_mime_types:
- image/png
- image/jpeg
- image/gif
comment: The path to the source file of the image to be optimized.
cascade: true
alt_text:
type: textarea
label: Image Alt Text
hidden: '!image_path'
cascade: true
width:
type: number
cascade: true
height:
type: number
cascade: true
background_color:
type: select
options:
values: data.colors
value_key: value
preview:
text:
- key: name
hidden: border_only
cascade: true
text_color:
type: select
options:
values: data.colors
value_key: value
preview:
text:
- key: name
cascade: true
color:
type: select
options:
values: data.colors
value_key: value
preview:
text:
- key: name
cascade: true
icon:
type: select
options:
allow_empty: true
values: data.icons
cascade: true
button_icon:
type: select
options:
allow_empty: true
values: data.icons
cascade: true
button_link:
type: url
cascade: true
hover_brightness:
type: range
options:
min: 0
max: 1.5
step: 0.05
cascade: true
seo:
type: auto
options:
preview:
text:
- Search engine optimization
subtext:
- key: page_description
- Update SEO values for the page
icon: query_stats
cascade: true
layout:
type: auto
hidden: true
cascade: true
date:
type: auto
instance_value: now
cascade: true
social:
type: auto
options:
preview:
icon: link
cascade: true
links[*]:
type: auto
options:
preview:
text:
- key: text
- Link
subtext:
- key: link
- Add a social link
icon: link
cascade: true
social_icon:
type: select
options:
allow_empty: true
values: data.icons
cascade: true
social[*]:
type: auto
options:
preview:
icon: query_stats
cascade: true
logo:
type: image
cascade: true
logo_url:
type: auto
comment: Link for the logo in the top left of the footer
cascade: true
copyright:
type: auto
comment: Automatically prefixed with the current year
cascade: true
page_description:
type: auto
comment: Defaults to the description set in the Site SEO data file
cascade: true
canonical_url:
type: auto
comment: Defaults to the pages url
cascade: true
featured_image:
type: auto
comment: Defaults to the image set in the Site SEO data file
cascade: true
open_graph_type:
type: select
options:
allow_empty: true
values:
- website
- article
comment: Defaults to the type 'website'
cascade: true
author_twitter_handle:
type: auto
comment: Defaults to the twitter site value set in the Site SEO data file
cascade: true
twitter_site:
type: url
cascade: true
no_index:
type: checkbox
comment: >-
When selected this removes the page from your sitemap and adds the noindex
robots meta tag
cascade: true
favicon:
type: image
_structures:
content_blocks:
style: modal
_editables:
content:
allow_custom_markup: false
remove_custom_markup: false
blockquote: true
bold: true
bulletedlist: true
center: align-center
code: true
copyformatting: true
embed: true
format: p h2 h3 h4
horizontalrule: true
image: true
image_size_attributes: true
indent: true
italic: true
justify: align-justify
left: align-left
link: true
numberedlist: true
outdent: true
redo: true
removeformat: true
right: align-right
snippet: true
strike: true
styles: /src/assets/styles/editor.css
subscript: true
superscript: true
table: true
underline: true
undo: true
timezone: Pacific/Auckland
_snippets_imports:
eleventy_liquid: true
_snippets:
alert:
template: eleventy_liquid_bookshop_component
inline: false
preview:
text:
- key: alert_message
- 'Alert'
gallery:
image: /assets/images/snippet-previews/alert.preview.webp
definitions:
component_name: snippets/alert
named_args:
- editor_key: background_color
source_key: background_color
type: string
- editor_key: alert_message
source_key: alert_message
type: string
- editor_key: color
source_key: color
type: string
- editor_key: icon
source_key: icon
type: string
_inputs:
background_color:
type: select
options:
values: data.colors
value_key: value
preview:
text:
- key: name
icon:
type: select
options:
values: data.icons
color:
type: select
options:
values: data.colors
value_key: value
preview:
text:
- key: name
alert_message:
comment: This is the text displayed in the alert
type: textarea
video:
template: eleventy_liquid_bookshop_component
inline: false
preview:
text: Video
gallery:
image: /assets/images/snippet-previews/video.preview.webp
definitions:
component_name: snippets/video
named_args:
- editor_key: src
source_key: src
type: string
_inputs:
src:
type: file
options:
paths:
uploads: assets/videos
file:
template: eleventy_liquid_bookshop_component
inline: false
preview:
text: File
gallery:
image: /assets/images/snippet-previews/file.preview.webp
definitions:
component_name: snippets/file
named_args:
- editor_key: src
source_key: src
type: string
- editor_key: file_name
source_key: file_name
type: string
- editor_key: link_message
source_key: link_message
type: string
_inputs:
src:
type: file
label: File source
options:
paths:
uploads: assets/documents
file_name:
comment: The name of the file, once downloaded.
link_message:
type: textarea
comment: The text for the download link
tint:
template: eleventy_liquid_paired_shortcode_positional_args
inline: true
preview:
text: Tint
gallery:
image: /assets/images/snippet-previews/tint.preview.webp
definitions:
shortcode_name: tint
content_key: text
positional_args:
- editor_key: color
type: string
_inputs:
text:
comment: This text will be tinted
type: textarea