Skip to content

Commit 3d55e9e

Browse files
authored
Fix priority assignment in sitemap generation
1 parent 6b43773 commit 3d55e9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/gitbook/src/routes/sitemap.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@ export function servePagesSitemap(context: GitBookSiteContext) {
6161
const lastModified = page.updatedAt || page.createdAt;
6262

6363
const url: { loc: string; priority: number; lastmod?: string } = {
64-
priority: normalizedPriority,
6564
loc: linker.toAbsoluteURL(
6665
linker.toPathForPage({
6766
pages: context.revision.pages,
6867
page,
6968
})
7069
),
70+
priority: normalizedPriority,
7171
};
7272

7373
if (lastModified) {

0 commit comments

Comments
 (0)