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' => [
|
'tobimori.seo' => [
|
||||||
// TODO: définir l'URL de production pour éviter le duplicate content
|
'canonical' => [
|
||||||
// 'canonicalBase' => 'https://www.worldgame.fr',
|
'base' => 'https://www.worldgame.fr',
|
||||||
|
],
|
||||||
'sitemap' => [
|
'sitemap' => [
|
||||||
'excludeTemplates' => ['error'],
|
'enabled' => true,
|
||||||
'changefreq' => 'weekly',
|
'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' => [
|
'robots' => [
|
||||||
'active' => true,
|
'enabled' => true,
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue