Skip to content

feat(seo): add canonical, OG/Twitter tags, JSON-LD schema, robots.txt and sitemap - #91

Merged
WardLu merged 2 commits into
mainfrom
codex/shadow-mate-seo-geo-20260904
Sep 4, 2026
Merged

feat(seo): add canonical, OG/Twitter tags, JSON-LD schema, robots.txt and sitemap#91
WardLu merged 2 commits into
mainfrom
codex/shadow-mate-seo-geo-20260904

Conversation

@WardLu

@WardLu WardLu commented Sep 4, 2026

Copy link
Copy Markdown
Owner

变更范围与目的

  • 针对影伴(Shadow Mate)独立 Web/PWA 站点 https://sm.shadow.wang/ 补齐基础 SEO、GEO 结构化数据与社交分享卡片:
    1. Canonical 规范链接
      • index.html:添加 <link rel="canonical" href="https://sm.shadow.wang/">
      • privacy-policy.html:添加 <link rel="canonical" href="https://sm.shadow.wang/privacy">
    2. Open Graph & Twitter Card
      • 配置 og:typeog:urlog:titleog:descriptionog:image(指向 /icons/icon-512.png)、og:site_nameog:locale,确保在微信、朋友圈、即刻、X 等平台分享时展现富媒体卡片与图标。
      • 配置 twitter:cardsummary
    3. JSON-LD 结构化数据(GEO / AI 搜索与知识图谱)
      • index.html 输出 WebApplication(分类为 EducationalApplication)Schema。
      • 配置 sameAs 数组连接 https://shadow.wang/zh/products/shadow-matehttps://github.com/WardLu/shadow-mate,打通 Shadow Portal 与开源仓库实体互认。
      • 更新 scripts/check.mjs 静态检查,允许 application/ld+json 类型的内联元数据脚本。
    4. 公开抓取与站点地图
      • 新增 public/robots.txt:允许公开爬取,并声明 sitemap 路径。
      • 新增 public/sitemap.xml:包含首页与隐私政策页。
    5. 双向反向链接
      • 页脚底部原有外部链接更新为指向规范官网 https://shadow.wang/zh 与产品详情页 https://shadow.wang/zh/products/shadow-mate

门禁验证

  • npm run check:通过(静态检查与 marker 校验通过)
  • npm run public:check:通过(无私有文件或密钥泄露)
  • npm run security:check:通过(安全扫描通过)
  • npm run build:通过(dist 构建正常,Vite 打包通过)
  • npm run test:fast:通过(24 个测试文件,193 个单元测试全部通过)

@vercel

vercel Bot commented Sep 4, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
shadow-mate Ready Ready Preview Sep 4, 2026 3:57pm UTC

@WardLu
WardLu merged commit a3f08ea into main Sep 4, 2026
6 checks passed
@WardLu
WardLu deleted the codex/shadow-mate-seo-geo-20260904 branch September 4, 2026 16:01
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