-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.php
49 lines (48 loc) · 1.41 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://artisan-static-demo.netlify.com',
'site' => [
'title' => 'My Jigsaw Blog',
'description' => 'Personal blog of John Doe.',
'image' => 'default-share.png',
],
'owner' => [
'name' => 'John Doe',
'twitter' => 'johndoe',
'github' => 'johndoe',
],
'services' => [
'analytics' => 'UA-XXXXX-Y',
'disqus' => 'artisanstatic',
'cloudinary' => 'artisanstatic',
'jumprock' => 'artisanstatic',
],
'collections' => [
'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}";
},
];