7 Commits
Author SHA1 Message Date
zihluwang 7a63074a65 chore: remove blog, open-source and news sections
- Delete the blogs, opensource-projects and notifications trees
- Drop their nav entries and i18n keys
- Point the nav at the new open-source site instead
- Drop the opensource-projects sitemap priority
2026-09-29 12:21:53 +08:00
zihluwang 164c319ac1 feat(i18n): default the cn build to Chinese
The .cn site exists for Chinese readers, so the unprefixed routes should
serve Chinese there. Rspress omits the prefix for the default locale, so
this also moves the routes:

              .com                      .cn
  English     /                         /en-gb/
  Chinese     /zh-hans/                 /

- Make the default locale a per-target value rather than a constant, and
  move the localePrefix helper inside createConfig so a prefix can no
  longer be hardcoded elsewhere.
- Build the sitemap priority map from localePrefix. The keys are full
  route paths, so the previous hardcoded "/zh-hans/..." entries would
  have silently stopped matching on .cn.
- Widen the nav Home activeMatch to cover either prefixed home, since the
  two targets put a different locale behind the prefix.

Note: README.md also carries the licence wording changed in the next
commit — a single file's hunks cannot be split non-interactively.
2026-09-25 15:38:03 +08:00
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 7de2a54f7f docs: update git repo url 2026-06-08 16:25:06 +08:00
siujamo c48cb3d8f0 feat: replace PNG logo and icon with SVG versions
Switch from rspress default branding to OnixByte custom SVG assets.
2026-05-20 02:10:05 -05:00
siujamo da26fde07e docs: translate gitlab-ops to en-gb, enhance gravatar article, fix heading levels
- Translate GitLab Operations article from Chinese to British English
- Add comprehensive Gravatar usage guide with code examples in both locales
- Fix heading levels on notification pages (h1 -> h2)
- Enable line numbers in code blocks via rspress config
2026-05-20 01:50:59 -05:00
siujamo 2c17c927fc feat: implement pages 2026-05-19 21:45:20 -05:00