Skip to content

feat(seo): 上线 edit.chaxus.com 的 SEO/GEO 基础#103

Merged
chaxus merged 1 commit into
mainfrom
feat/seo-geo-launch
Jul 6, 2026
Merged

feat(seo): 上线 edit.chaxus.com 的 SEO/GEO 基础#103
chaxus merged 1 commit into
mainfrom
feat/seo-geo-launch

Conversation

@chaxus

@chaxus chaxus commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

核查发现这批 SEO/GEO 资产早已准备好但从未提交,导致线上几乎零 SEO:<title> 还是 Document Editor,无 description/OG/JSON-LD;/robots.txt/sitemap.xml/llms.txt 全部命中 CF 的 SPA 回退(返回 HTML)。本 PR 把它们提交上线。

内容

  • index.html:关键词化 title + description、canonical、OG + Twitter、JSON-LD WebApplication<noscript> 可爬内容(SPA 关键,否则爬虫只见空 #app)
  • robots.txt:"citable, not trained"(对齐 ran 决策 4)——放行搜索 + AI 检索/引用类,屏蔽训练类(GPTBot/ClaudeBot/CCBot/Google-Extended…)。修正原文件"注释说不训练、规则却全放行"的矛盾
  • sitemap.xml + llms.txt(GEO 入口)

验证

build 产物含全部标签 + 三文件;format:check 通过。

部署后

⚠️ 确认 CF → 该域 → Security/Bots → "Manage robots.txt" = Off(否则盖掉我们的);GSC 提交 sitemap。详见 docs/explorations/2026-07-05-seo-geo-launch.md

🤖 Generated with Claude Code

These assets were prepared earlier but never committed, so the live site had
near-zero SEO (bare <title>, no description/OG/JSON-LD) and robots/sitemap/llms
all fell through to the SPA HTML fallback.

- index.html: keyword-rich title + description, canonical, Open Graph +
  Twitter, JSON-LD WebApplication, and a <noscript> crawlable block (critical
  for a SPA — crawlers otherwise see an empty #app div)
- public/robots.txt: "citable, not trained" (matches ran's decision 4) — allow
  search + AI retrieval/citation bots, block training-only crawlers
  (GPTBot/ClaudeBot/CCBot/Google-Extended/…). Fixes the previous file whose
  comment claimed this stance but allowed everything.
- public/sitemap.xml + public/llms.txt (GEO entry map)

Verified: build emits the tags + all three files into dist; format:check passes.
Post-deploy: confirm CF "Manage robots.txt" is Off, then submit sitemap in GSC.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying document with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4f92b0c
Status: ✅  Deploy successful!
Preview URL: https://5173cbb6.document-7hm.pages.dev
Branch Preview URL: https://feat-seo-geo-launch.document-7hm.pages.dev

View logs

@chaxus chaxus merged commit b61cf5b into main Jul 6, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant