Skip to content

Commit 8ee9e1a

Browse files
authoredFeb 18, 2025··
fix(content): exclude YAML navigation files from the sitemap (#423)
* fix(content): remove .navigation pages * Update module.ts
1 parent 6e2a7c1 commit 8ee9e1a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎src/module.ts

+3
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,9 @@ declare module 'vue-router' {
378378
updatedAt?: string
379379
}
380380
nuxtV3Collections.add(ctx.collection.name)
381+
if (ctx.file.path.endsWith('/.navigation')) {
382+
return
383+
}
381384
if (!('sitemap' in ctx.collection.fields)) {
382385
return
383386
}

0 commit comments

Comments
 (0)
Please sign in to comment.