Static site guide

2026-05-26 · 中文版

A build script keeps bilingual pages, feeds, and maps in sync.

Folder layout

zh/  en/  assets/  tools/build.mjs  sitemap.xml
Register new posts in the ARTICLES array, then run npm run build.

New article checklist

Set slug, date, bilingual copy, and sections—the build updates indexes, home “Latest”, RSS, search JSON, and sitemap when listed in HOME_LATEST.

Images and video

See WebP gallery performance. Host very large MP4 files on a CDN if needed.