world-game/site/config/config.php
isUnknown 12227dc50c
All checks were successful
Deploy Production / Deploy to Production (push) Successful in 28s
seo : fix sitemap empty in prod, set canonical base to world.game
- Add config.world.game.php with debug=false so robots.index=true in prod
- Fix canonical.base to https://world.game

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-06 13:56:36 +02:00

49 lines
1.5 KiB
PHP

<?php
return [
'debug' => true,
'languages' => true,
'panel' => [
'css' => 'assets/css/custom-panel.css',
'theme' => 'dark',
'menu' => require __DIR__ . '/menu.php',
],
'thumbs' => require __DIR__ . '/thumbs.php',
'routes' => [
require(__DIR__ . '/routes/download-white-paper.php')
],
'tobimori.seo' => [
'canonical' => [
'base' => 'https://world.game',
],
'sitemap' => [
'enabled' => true,
'locale' => 'fr',
'excludeTemplates' => ['error', 'default'],
'changefreq' => function (\Kirby\Cms\Page $page) {
return match ($page->intendedTemplate()->name()) {
'home', 'expertise', 'portfolio', 'play', 'about' => 'monthly',
'article', 'white-paper', 'game', 'project' => 'monthly',
default => 'weekly',
};
},
'priority' => function (\Kirby\Cms\Page $page) {
return match ($page->intendedTemplate()->name()) {
'home' => '1.0',
'expertise', 'portfolio', 'play', 'about' => '0.9',
'blog', 'white-papers' => '0.8',
'article', 'white-paper', 'game', 'project' => '0.7',
'privacy' => '0.3',
default => number_format(max(1 - 0.2 * $page->depth(), 0.2), 1),
};
},
],
'robots' => [
'enabled' => true,
],
],
];