Skip to content

Commit

Permalink
fix(content): exclude YAML navigation files from the sitemap (#423)
Browse files Browse the repository at this point in the history
* fix(content): remove .navigation pages

* Update module.ts
  • Loading branch information
maximepvrt authored Feb 18, 2025
1 parent 6e2a7c1 commit 8ee9e1a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,9 @@ declare module 'vue-router' {
updatedAt?: string
}
nuxtV3Collections.add(ctx.collection.name)
if (ctx.file.path.endsWith('/.navigation')) {
return
}
if (!('sitemap' in ctx.collection.fields)) {
return
}
Expand Down

0 comments on commit 8ee9e1a

Please sign in to comment.