dataarchiteces/private/site/config/config.php

48 lines
1.6 KiB
PHP
Raw Normal View History

2026-02-09 08:36:12 +01:00
<?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]
]
]
2026-02-09 17:05:41 +01:00
],
'pechente.kirby-password-guard' => [
'password' => 'data-090226',
]
2026-02-09 08:36:12 +01:00
];