diff --git a/.changeset/breezy-games-attack.md b/.changeset/breezy-games-attack.md new file mode 100644 index 0000000..d68e059 --- /dev/null +++ b/.changeset/breezy-games-attack.md @@ -0,0 +1,5 @@ +--- +"@astrolicious/i18n": patch +--- + +Fixes a case where non pages were included in the sitemap diff --git a/package/src/sitemap/integration.ts b/package/src/sitemap/integration.ts index 23419e6..96f34b2 100644 --- a/package/src/sitemap/integration.ts +++ b/package/src/sitemap/integration.ts @@ -150,7 +150,7 @@ export const integration = defineIntegration({ ); } r.routeData = routeData; - r.include = true; + r.include = routeData.type === "page"; } const _routes = [