From 8ee9e1aeb01053ce47787a28304db74bedde2d69 Mon Sep 17 00:00:00 2001 From: Maxime Pauvert Date: Tue, 18 Feb 2025 20:42:30 +0100 Subject: [PATCH] fix(content): exclude YAML navigation files from the sitemap (#423) * fix(content): remove .navigation pages * Update module.ts --- src/module.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/module.ts b/src/module.ts index 7528b75..a4f47a2 100644 --- a/src/module.ts +++ b/src/module.ts @@ -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 }