-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.php
49 lines (48 loc) · 1.44 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 [
'production' => false,
'baseUrl' => 'https://jaysonbrowne.com',
'site' => [
'title' => 'Jayson Browne',
'description' => 'Portfolio',
'image' => 'jayson_browne_front_end_developer_portfolio.jpg',
'role' => 'front-end designer & developer'
],
'owner' => [
'name' => 'Jayson Browne',
'twitter' => 'jaysbrowne',
'github' => 'jaysbrowne',
],
'services' => [
'analytics' => 'UA-XXXXX-Y',
'cloudinary' => 'jaysbrowne',
],
'collections' => [
'casestudies' => [
'path' => '/{filename}',
'image' => '/build/assets/images/{filename}',
'sort' => 'date',
'extends' => '_layouts.casestudy',
'section' => 'csContent',
'isCaseStudy' => true,
'comments' => false,
'tags' => [],
],
'tags' => [
'path' => 'tags/{filename}',
'extends' => '_layouts.tag',
'section' => '',
'name' => function ($page) {
return $page->getFilename();
},
],
],
'excerpt' => function ($page, $limit = 250, $end = '...') {
return $page->isCaseStudy
? str_limit_soft(content_sanitize($page->getContent()), $limit, $end)
: null;
},
'imageCdn' => function ($page, $path) {
return "https://res.cloudinary.com/{$page->services->cloudinary}/{$path}";
},
];