Commit Graph
3 Commits
Author SHA1 Message Date
zihluwang 3f78e45899 feat(seo): add sitemap, canonical metadata and legacy redirects
- Split the config into a createConfig(target) factory plus a thin .cn
  wrapper, so the two deployments differ in one place. The .cn build
  points canonical, hreflang, og:url, sitemap and robots at that origin,
  and omits social links that are not reachable from mainland China.
- Generate sitemap.xml and robots.txt per target. robots.txt is written
  at build time because one static file cannot carry the right origin for
  both domains.
- Emit per-page canonical, hreflang and Open Graph tags. og:title and
  friends are left to the theme, which already emits them and does not
  de-duplicate against site-level head entries.
- Redirect the retired /projects/ paths on Vercel, before the CN redirect
  so those visitors get a single hop.
2026-09-25 14:48:49 +08:00
siujamo 4c11976eb7 ci: replace GitHub Pages action with Gitea Actions for Vercel deployment
Switch from GitHub Pages deployments to Vercel via Gitea Actions CLI.
2026-06-04 13:02:30 +08:00
siujamo 44dc28dbb3 feat: add Vercel geo-redirect config for China mainland visitors
Use vercel.json redirects with the x-vercel-ip-country header condition
to route mainland China visitors to the ICP-licenced server.
2026-05-27 10:04:29 +08:00