Skip to content

Commit 1da0e0b

Browse files
committed
Remove undocumented sitemap.dynamic_priority config option
Either we add something like this for the changefreq logic, or we remove it, and I think it can be removed since it's not documented, and it's such an uncommon use case. And if one is unhappy with the generation, a better way is to customize the class to add custom logic.
1 parent c265521 commit 1da0e0b

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

packages/framework/src/Framework/Features/XmlGenerators/SitemapGenerator.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,7 @@ protected function addRoute(Route $route): void
5050
$this->addChild($urlItem, 'loc', $this->resolveRouteLink($route));
5151
$this->addChild($urlItem, 'lastmod', $this->getLastModDate($route->getSourcePath()));
5252
$this->addChild($urlItem, 'changefreq', $this->getChangeFrequency($route->getPageClass(), $route->getPage()->getIdentifier()));
53-
54-
if (Config::getBool('hyde.sitemap.dynamic_priority', true)) {
55-
$this->addChild($urlItem, 'priority', $this->getPriority(
56-
$route->getPageClass(), $route->getPage()->getIdentifier()
57-
));
58-
}
53+
$this->addChild($urlItem, 'priority', $this->getPriority($route->getPageClass(), $route->getPage()->getIdentifier()));
5954
}
6055

6156
protected function getLastModDate(string $file): string

0 commit comments

Comments
 (0)