-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathindex.php
98 lines (87 loc) · 4.73 KB
/
index.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<?php
use FabianMichael\Meta\SitemapPage;
use Kirby\Cms\App;
@include_once __DIR__ . '/vendor/autoload.php';
App::plugin('fabianmichael/meta', [
'options' => [
'cache' => true,
'sitemap' => true,
'sitemap.detailSettings' => false,
'sitemap.pages.exclude' => [],
'sitemap.pages.includeUnlisted' => [],
'sitemap.templates.exclude' => [],
'sitemap.templates.includeUnlisted' => [],
'schema' => true,
'social' => true,
'twitter' => false,
'robots' => true,
'robots.canonical' => true,
'robots.index' => true,
'robots.follow' => true,
'robots.archive' => true,
'robots.imageindex' => true,
'robots.snippet' => true,
'robots.translate' => true,
'title.separators' => ['~' , '-' , '–' , '—' , ':' , '/' , '⋆' , '·' , '•' , '~' , '×' , '*' , '‣', '→', '←', '<' , '>' , '«' , '»' , '‹' , '›', '♠︎', '♣︎', '♥︎', '♦︎', '☙', '❦', '❧', '☭'],
'theme.color' => null,
'panel.view.filter' => null,
],
'api' => require __DIR__ . '/config/api.php',
'areas' => [
'meta' => [
'label' => 'Metadata',
'icon' => 'search',
'menu' => true,
'views' => require __DIR__ . '/config/views.php',
],
],
'blueprints' => [
'fields/meta/general-group' => require __DIR__ . '/blueprints/fields/meta/general-group.php',
'fields/meta/global-general-group' => require __DIR__ . '/blueprints/fields/meta/global-general-group.php',
'fields/meta/global-opengraph-group' => __DIR__ . '/blueprints/fields/meta/global-opengraph-group.yml',
'fields/meta/global-robots-group' => require __DIR__ . '/blueprints/fields/meta/global-robots-group.php',
'fields/meta/global-schema-group' => __DIR__ . '/blueprints/fields/meta/global-schema-group.yml',
'fields/meta/global-sitemap-changefreq' => require __DIR__ . '/blueprints/fields/meta/global-sitemap-changefreq.php',
'fields/meta/global-twitter-group' => __DIR__ . '/blueprints/fields/meta/global-twitter-group.yml', // deprecated
'fields/meta/og-image' => __DIR__ . '/blueprints/fields/meta/og-image.yml',
'fields/meta/opengraph-group' => __DIR__ . '/blueprints/fields/meta/opengraph-group.yml',
'fields/meta/robots-group' => require __DIR__ . '/blueprints/fields/meta/robots-group.php',
'fields/meta/sitemap-changefreq' => require __DIR__ . '/blueprints/fields/meta/sitemap-changefreq.php',
'fields/meta/sitemap-priority' => __DIR__ . '/blueprints/fields/meta/sitemap-priority.yml',
'fields/meta/twitter-group' => __DIR__ . '/blueprints/fields/meta/twitter-group.yml', // deprecated
'files/meta-logo' => __DIR__ . '/blueprints/files/meta-logo.yml',
'files/meta-og-image' => __DIR__ . '/blueprints/files/meta-og-image.yml',
'sections/meta/files' => __DIR__ . '/blueprints/sections/files.yml',
'sections/meta/share-preview' => __DIR__ . '/blueprints/sections/share-preview.yml',
'sections/meta/status' => __DIR__ . '/blueprints/sections/status.yml',
'tabs/meta/page' => require __DIR__ . '/blueprints/tabs/page.php',
'tabs/meta/site' => require __DIR__ . '/blueprints/tabs/site.php',
],
'fields' => require __DIR__ . '/config/fields.php',
'filesMethods' => require __DIR__ . '/config/files-methods.php',
'routes' => require __DIR__ . '/config/routes.php',
'pageMethods' => require __DIR__ . '/config/page-methods.php',
'pageModels' => [
'sitemap' => SitemapPage::class,
],
'sections' => require __DIR__ . '/config/sections.php',
'siteMethods' => require __DIR__ . '/config/site-methods.php',
'snippets' => [
'meta' => __DIR__ . '/snippets/meta.php',
'meta/general' => __DIR__ . '/snippets/general.php',
'meta/robots' => __DIR__ . '/snippets/robots.php',
'meta/social' => __DIR__ . '/snippets/social.php',
'meta/schema' => __DIR__ . '/snippets/schema.php',
],
'templates' => [
'sitemap' => __DIR__ . '/templates/sitemap.php',
'sitemap.xml' => __DIR__ . '/templates/sitemap.xml.php',
],
'translations' => [
'da' => require __DIR__ . '/translations/da.php',
'de' => require __DIR__ . '/translations/de.php',
'en' => require __DIR__ . '/translations/en.php',
'fr' => require __DIR__ . '/translations/fr.php',
'sv_SE' => require __DIR__ . '/translations/sv_SE.php',
],
]);