seo : configure sitemap with priorities and canonical base
All checks were successful
Deploy Production / Deploy to Production (push) Successful in 35s
All checks were successful
Deploy Production / Deploy to Production (push) Successful in 35s
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
56ac349cc7
commit
a27b9a3989
1 changed files with 24 additions and 5 deletions
|
|
@ -17,14 +17,33 @@ return [
|
|||
],
|
||||
|
||||
'tobimori.seo' => [
|
||||
// TODO: définir l'URL de production pour éviter le duplicate content
|
||||
// 'canonicalBase' => 'https://www.worldgame.fr',
|
||||
'canonical' => [
|
||||
'base' => 'https://www.worldgame.fr',
|
||||
],
|
||||
'sitemap' => [
|
||||
'excludeTemplates' => ['error'],
|
||||
'changefreq' => 'weekly',
|
||||
'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' => [
|
||||
'active' => true,
|
||||
'enabled' => true,
|
||||
],
|
||||
],
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue