-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.php
56 lines (48 loc) · 1.63 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
53
54
55
56
<?php
return [
'debug' => true,
'scssNestedCheck' => true,
'languages' => env('KIRBY_MULTILANG', false),
'languages.detect' => env('KIRBY_MULTILANG_DETECT', false),
'thumbs' => [
'driver' => 'im'
],
'panel' => [
'install' => env('KIRBY_PANEL_INSTALL', false),
'slug' => env('KIRBY_PANEL_SLUG', 'panel'),
'language' => 'de',
'css' => 'assets/css/custom-panel.css'
],
'api' => [
'slug' => env('KIRBY_API_SLUG', 'api')
],
'cache' => [
'pages' => [
'active' => env('KIRBY_CACHE', false),
'ignore' => fn (\Kirby\Cms\Page $page) => kirby()->user() !== null
]
],
// See https://github.com/johannschopplich/kirby-helpers/blob/main/docs/meta.md
'johannschopplich.helpers' => [
'meta' => [
'defaults' => function (\Kirby\Cms\App $kirby, \Kirby\Cms\Site $site, \Kirby\Cms\Page $page) {
$description = $page->description()->or($site->description())->value();
return [
'opengraph' => [
'image' => '/img/android-chrome-512x512.png'
],
'twitter' => [
'image' => '/img/android-chrome-512x512.png'
],
'jsonld' => [
'WebSite' => [
'url' => $site->url(),
'name' => $site->title()->value(),
'description' => $description
]
]
];
}
]
]
];