Skip to content

Commit fa47803

Browse files
committed
Minimize and sort sitemaps
1 parent 05fd261 commit fa47803

File tree

2 files changed

+19
-20
lines changed

2 files changed

+19
-20
lines changed

next-sitemap.config.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@ module.exports = {
77
additionalPaths: async (config) => {
88
const response = await fetch("https://data.py-code.org/data/pages.json")
99
const packageList = await response.json();
10+
const packages = packageList.packages.toSorted((a, b) => a.toLowerCase().localeCompare(b.toLowerCase()));
1011

11-
return packageList.packages.map((pkg) => ({
12+
return packages.map((pkg) => ({
1213
loc: `https://py-code.org/projects/view?name=${pkg.toLowerCase()}`,
13-
changefreq: 'weekly',
14-
priority: 0.7,
1514
}));
1615
},
1716
}

package-lock.json

Lines changed: 17 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)