-
Notifications
You must be signed in to change notification settings - Fork 6
/
config.php
49 lines (48 loc) · 1.48 KB
/
config.php
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
<?php
return [
'fulldate' => function ($shortdate) {
return date('l d.m.Y', $shortdate);
},
'baseUrl' => 'https://code.design',
'contact' => 'Martin Betz',
'production' => false,
'collections' => [
'camps' => [
'path' => 'camps/{-slug}/{date_start|ym}',
'sort' => 'date_start'
],
'blogs' => [
'path' => 'blogs/{-filename}',
'sort' => '-published_at'
],
'coaches' => [
'path' => 'coaches/{-lastname}',
'sort' => 'lastname',
'hasCamp' => function ($page, $camps) {
return collect(explode(',', $page->camps))->contains($camps);
}
],
'partners' => [
'path' => 'partner/{-name}',
'hasTier' => function ($page, $tier) {
return collect(explode(',', $page->tier))->contains($tier);
},
'hasCamp' => function ($page, $camps) {
return collect(explode(',', $page->camps))->contains($camps);
},
'sort' => 'name'
],
'testimonials' => [
'path' => 'stimmen/{published_at|ym}/{-slug}',
'sort' => '-published_at'
],
'updates' => [
'path' => 'updates/{camp}/{published_at|ym}/{-slug}',
'sort' => '-published_at'
],
'articles' => [
'path' => 'magazin/{-slug}',
'sort' => 'publication_date'
]
],
];