-
Notifications
You must be signed in to change notification settings - Fork 62
Expand file tree
/
Copy pathconfig.php
More file actions
37 lines (33 loc) · 994 Bytes
/
config.php
File metadata and controls
37 lines (33 loc) · 994 Bytes
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
<?php
return [
'baseUrl' => 'http://builtwithjigsaw.test',
'production' => false,
'collections' => [
'sites' => [
'path' => 'sites',
'sort' => '-added',
'image' => function ($site) {
$source = getcwd() . '/source';
foreach (['webp', 'avif', 'png'] as $ext) {
$path = sprintf("/assets/images/sites/%s.%s", $site->_meta->filename, $ext);
if (file_exists($source . $path)) {
return $path;
}
}
return '/assets/images/blank-site.png';
},
],
'articles' => [
'path' => 'articles',
'sort' => '-published',
],
],
'typeColors' => [
'blog' => '#3f7703',
'company' => '#874ec5',
'docs' => '#bb5b04',
'meetup' => '#c10000',
'personal' => '#226bb1',
'project' => '#026773',
],
];