From 604aeb2a068c52ec85b6680fc3a904f84f9e098a Mon Sep 17 00:00:00 2001 From: Keith Date: Sun, 22 Nov 2026 16:13:44 +0100 Subject: [PATCH] Sitemap: self-annotate single-locale pages (privacy) with en + x-default so sitemap alternates match the tags; multi-locale entries unchanged --- astro.config.mjs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/astro.config.mjs b/astro.config.mjs index 62f3df3..a414bcf 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -33,6 +33,13 @@ export default defineConfig({ if (item.links?.length) { const def = item.links.find((l) => l.lang === DEFAULT_LOCALE); if (def) item.links = [...item.links, { url: def.url, lang: "x-default" }]; + } else { + // single-locale page (e.g. /privacy/, EN-only): self-annotate + // so the sitemap agrees with the tags (en + x-default) + item.links = [ + { url: item.url, lang: DEFAULT_LOCALE }, + { url: item.url, lang: "x-default" }, + ]; } return item; },