Add landing page
This commit is contained in:
parent
9439de0603
commit
aaf1aa7890
603 changed files with 637 additions and 1 deletions
45
private/site/config/config.php
Normal file
45
private/site/config/config.php
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
<?php
|
||||
|
||||
return [
|
||||
'debug' => true,
|
||||
'routes' => [
|
||||
[
|
||||
'pattern' => 'sitemap.xml',
|
||||
'action' => function() {
|
||||
$pages = site()->pages()->index();
|
||||
|
||||
// fetch the pages to ignore from the config settings,
|
||||
// if nothing is set, we ignore the error page
|
||||
$ignore = kirby()->option('sitemap.ignore', ['error']);
|
||||
|
||||
$content = snippet('sitemap', compact('pages', 'ignore'), true);
|
||||
|
||||
// return response with correct header type
|
||||
return new Kirby\Cms\Response($content, 'application/xml');
|
||||
}
|
||||
],
|
||||
[
|
||||
'pattern' => 'sitemap',
|
||||
'action' => function() {
|
||||
return go('sitemap.xml', 301);
|
||||
}
|
||||
]
|
||||
],
|
||||
'thumbs' => [
|
||||
'srcsets' => [
|
||||
'default' => [
|
||||
'450w' => ['width' => 450, 'quality' => 90],
|
||||
'800w' => ['width' => 800, 'quality' => 90],
|
||||
'1024w' => ['width' => 900, 'quality' => 90],
|
||||
'1440w' => ['width' => 1200, 'quality' => 90],
|
||||
'2048w' => ['width' => 1700, 'quality' => 90],
|
||||
'2900w' => ['width' => 2500, 'quality' => 90],
|
||||
'3000w' => ['width' => 2800, 'quality' => 90],
|
||||
'3500w' => ['width' => 3000, 'quality' => 90],
|
||||
'4000w' => ['width' => 3500, 'quality' => 90],
|
||||
'4500w' => ['width' => 4000, 'quality' => 90],
|
||||
'5000w' => ['width' => 4500, 'quality' => 90]
|
||||
]
|
||||
]
|
||||
]
|
||||
];
|
||||
Loading…
Add table
Add a link
Reference in a new issue