-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.php
45 lines (44 loc) · 1.38 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
<?php
return [
'production' => false,
'baseUrl' => 'https://www.teslacharts.net',
'site' => [
'title' => 'Tesla Charts',
'description' => 'Repository for all @TESLACharts charts about Tesla stock price, Tesla bonds, Tesla earnings, Tesla registrations, Model S and Model X sales, Tesla deliveries, etc.',
'image' => 'tc.png',
],
'owner' => [
'name' => 'Tesla Charts',
'twitter' => 'TESLAcharts'
],
'services' => [
'analytics' => 'UA-XXXXX-Y',
],
'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}";
},
];