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
This commit is contained in:
+6
-2
@@ -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;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
---
|
||||
import Base from '../layouts/Base.astro';
|
||||
---
|
||||
<Base title="Spørg mit CV" description="En lille AI-chat der svarer på spørgsmål om mig, min erfaring og mit homelab.">
|
||||
<Base title="Spørg mit CV" description="En lille AI-chat der svarer på spørgsmål om mig, min erfaring og mit homelab." noindex>
|
||||
<h1 class="text-4xl font-bold tracking-tight">Spørg mit CV</h1>
|
||||
<p class="mt-4 max-w-2xl text-muted">
|
||||
En lille AI der har læst mit CV og denne side, og svarer på spørgsmål om mig.. fx
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
---
|
||||
import Base from '../layouts/Base.astro';
|
||||
---
|
||||
<Base title="Cookies" description="Hvilke cookies asger.weirsøe.dk bruger, og hvad de bruges til.">
|
||||
<Base title="Cookies" description="Hvilke cookies asger.weirsøe.dk bruger, og hvad de bruges til." noindex>
|
||||
<h1 class="text-4xl font-bold tracking-tight">Cookies</h1>
|
||||
<p class="mt-4 max-w-2xl text-muted">
|
||||
Denne side bruger cookies til at forbedre din oplevelse og lave anonym statistik over,
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
import Base from '../layouts/Base.astro';
|
||||
const STATUS_URL = 'https://status.weircon.dk/status/weircon';
|
||||
---
|
||||
<Base title="Status" description="Live driftsstatus for mit homelab.. self-hosted Uptime Kuma, selvfølgelig.">
|
||||
<Base title="Status" description="Live driftsstatus for mit homelab.. self-hosted Uptime Kuma, selvfølgelig." noindex>
|
||||
<h1 class="text-4xl font-bold tracking-tight">Status</h1>
|
||||
<p class="mt-4 max-w-2xl text-muted">
|
||||
Live status for de offentlige dele af mit homelab, målt af en self-hosted
|
||||
|
||||
Reference in New Issue
Block a user