-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.php
32 lines (31 loc) · 869 Bytes
/
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
<?php
return [
'production' => false,
'google_analytic_code' => 'UA-23560239-19',
'disqus_code' => 'staticpress-demo',
'title' => 'Demo of StaticPress',
'mainUrl' => 'https://comingsoon-demo.staticpress.io',
'baseUrl' => 'https://comingsoon-demo.staticpress.io',
'siteAuthor' => 'Hence Media Pvt. Ltd.',
'site' => [
'title' => 'Demo of StaticPress',
],
'collections' => [
'settings' => [
'path' => 'settings/{filename}',
'extends' => '_layouts.master',
'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;
},
'url' => function ($page, $path) {
return starts_with($path, 'http') ? $path : '/' . trimPath($path);
},
];