Revert "Merge commit 'db0870bdcb7a4eee760ba350406413b5fe84e638' into develop"
This reverts commit 113234816ec19bc585116c55ceedca86cd865748, reversing changes made to 51ff2484703c5a0d13f47df3fd381a63ce5c98b8.
This commit is contained in:
+18
-22
@@ -7,27 +7,23 @@ return [
|
||||
'compiler' => false
|
||||
]
|
||||
],
|
||||
'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);
|
||||
}
|
||||
|
||||
// Bessere Scanner-Kompatibilität
|
||||
'cache' => [
|
||||
'pages' => [
|
||||
'active' => true
|
||||
]
|
||||
],
|
||||
],
|
||||
|
||||
// Headers für bessere Scanner-Kompatibilität
|
||||
'headers' => [
|
||||
'X-Frame-Options' => 'SAMEORIGIN',
|
||||
'X-XSS-Protection' => '1; mode=block'
|
||||
],
|
||||
|
||||
// Robots-freundliche Einstellungen
|
||||
'smartypants' => true,
|
||||
'markdown' => [
|
||||
'extra' => true
|
||||
]
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user