-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.php
52 lines (51 loc) · 1.61 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
50
51
52
<?php
return [
'production' => false,
'baseUrl' => 'https://fitz-maurice.com',
'email' => '[email protected]',
'site' => [
'title' => 'Colin Fitz-Maurice',
'description' => 'Full-stack Laravel and Vue developer living in Philadelphia',
],
'social' => [
'twitter' => 'https://twitter.com/C_FitzMaurice',
'github' => 'https://github.com/c-fitzmaurice',
'linkedin' => 'https://www.linkedin.com/in/colinfitzmaurice',
'happycog' => 'https://twitter.com/happycog',
],
'services' => [
'analytics' => 'UA-48741641-4',
'disqus' => 'colin-fitz-maurice',
'cloudinary' => 'fitz',
],
'collections' => [
'projects' => [
'path' => 'projects/{filename}',
],
'posts' => [
'path' => 'posts/{filename}',
'sort' => '-date',
'extends' => '_layouts.post',
'section' => 'postContent',
'isPost' => true,
'comments' => true,
'tags' => [],
],
'tags' => [
'path' => 'tags/{filename}',
'extends' => '_layouts.tag',
'section' => '',
'name' => function ($page) {
return $page->getFilename();
},
],
],
'excerpt' => function ($page, $limit = 250, $end = '...') {
return $page->isPost
? str_limit_soft(content_sanitize($page->getContent()), $limit, $end)
: null;
},
'imageCdn' => function ($page, $path) {
return "https://res.cloudinary.com/{$page->services->cloudinary}/{$path}";
},
];