From 9103dca0f4a8c4a63168a057430927c5b8b405e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Asger=20Geel=20Weirs=C3=B8e?= Date: Tue, 6 Oct 2026 17:32:11 +0200 Subject: [PATCH] Keep the cookie, status and chat pages out of the index They are utility pages with nothing to rank for, and Google had crawled and passed on them anyway. Mark them noindex, follow, and leave them out of the sitemap so Search Console does not report submitted URLs marked noindex. Claude-Session: https://claude.ai/code/session_01GGe7kUhooMFuzY6GaDb2w9 --- astro.config.mjs | 8 ++++++-- src/pages/chat.astro | 2 +- src/pages/cookies.astro | 2 +- src/pages/status.astro | 2 +- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index 895f5eb..dc92dca 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -145,9 +145,13 @@ export default defineConfig({ customPages: ['https://asger.xn--weirse-fya.dk/tarballz/'], // Tag-siderne er noindex (tynde lister), så de hører heller ikke i sitemap'et. // /peppol er kun en omdirigering til /nemhandel og skal ikke indekseres. + // /cookies, /status og /chat er hjælpesider uden søgeværdi; de er noindex + // og står derfor heller ikke i sitemap'et (ellers melder Search Console + // "indsendt URL markeret som noindex"). filter: (page) => { - const p = new URL(page).pathname; - return !p.startsWith('/tags') && !p.startsWith('/peppol'); + const p = new URL(page).pathname.replace(/\/$/, ''); + return !p.startsWith('/tags') && !p.startsWith('/peppol') + && !['/cookies', '/status', '/chat'].includes(p); }, serialize(item) { const pathname = new URL(item.url).pathname; diff --git a/src/pages/chat.astro b/src/pages/chat.astro index a397762..1d7f704 100644 --- a/src/pages/chat.astro +++ b/src/pages/chat.astro @@ -1,7 +1,7 @@ --- import Base from '../layouts/Base.astro'; --- - +

Spørg mit CV

En lille AI der har læst mit CV og denne side, og svarer på spørgsmål om mig.. fx diff --git a/src/pages/cookies.astro b/src/pages/cookies.astro index 8e1f3cd..54dd8b2 100644 --- a/src/pages/cookies.astro +++ b/src/pages/cookies.astro @@ -1,7 +1,7 @@ --- import Base from '../layouts/Base.astro'; --- - +

Cookies

Denne side bruger cookies til at forbedre din oplevelse og lave anonym statistik over, diff --git a/src/pages/status.astro b/src/pages/status.astro index 6acccb3..43941a8 100644 --- a/src/pages/status.astro +++ b/src/pages/status.astro @@ -2,7 +2,7 @@ import Base from '../layouts/Base.astro'; const STATUS_URL = 'https://status.weircon.dk/status/weircon'; --- - +

Status

Live status for de offentlige dele af mit homelab, målt af en self-hosted