From 066149bc46a241a1f037ef488e12fd20642455d1 Mon Sep 17 00:00:00 2001 From: "Craig C." Date: Fri, 27 Nov 2026 15:40:21 +0200 Subject: [PATCH] chore(site): search crawlers skip the gmt `.md` twins and query URLs (northguild/gmt#559) Googlebot and Bingbot get their own robots.txt group. It repeats every `*` rule and the Content-Signal line, and adds three Disallow lines: `/gmt/*.md$`, `/gmt/?` and `/gmt/*/?`. AI agents keep reading the `.md` twins through the `*` group, which now names Applebot too. --- CLAUDE.md | 4 +++- apps/site/public/robots.txt | 12 ++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/CLAUDE.md b/CLAUDE.md index 5843c12..ce2ff45 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -34,4 +34,6 @@ and rewriting published history have to be asked for by name. - Colours come from `@northguild/theme` tokens. Amber is not used here. - `apps/site` must not extend `tsconfig.base.json`; it extends `astro/tsconfigs/strict`. - One `robots.txt` serves the whole host, including `/gmt/`. Keep every existing line, - `Content-Signal` included. Add a line only for a new sitemap or a path crawlers should skip. + `Content-Signal` included. The `Googlebot`/`Bingbot` group repeats every `*` rule and the + `Content-Signal` line, because a crawler with its own group ignores `*`; a change to one group + is made to both. diff --git a/apps/site/public/robots.txt b/apps/site/public/robots.txt index 20a0826..0df6d6a 100644 --- a/apps/site/public/robots.txt +++ b/apps/site/public/robots.txt @@ -1,10 +1,22 @@ User-agent: * +User-agent: Applebot Content-Signal: search=yes, ai-input=yes, ai-train=yes Allow: / Disallow: /api/ Disallow: /mcp/ Disallow: /gmt/api/ +User-agent: Googlebot +User-agent: Bingbot +Content-Signal: search=yes, ai-input=yes, ai-train=yes +Allow: / +Disallow: /api/ +Disallow: /mcp/ +Disallow: /gmt/api/ +Disallow: /gmt/*.md$ +Disallow: /gmt/? +Disallow: /gmt/*/? + Sitemap: https://northguild.dev/sitemap-index.xml Sitemap: https://northguild.dev/gmt/sitemap-index.xml Sitemap: https://northguild.dev/worktree/sitemap-index.xml