Source for zenithrains.github.io, a bilingual personal academic website built with Hugo and deployed through GitHub Actions.
content/enandcontent/zh: English and Chinese pagescontent/*/notes: short, self-contained notes and observationscontent/*/essays: essays and serialized columnsdata/publications.yaml: shared research records, authors, and manuscript statusdata/writing_features.yaml: curated homepage writing and external translationsdata/media.yaml: cover images and PDF metadatastatic/files: downloadable CV and PDF files
The English site is the default. A post may exist in only one language; add the
same translationKey to matching English and Chinese files when both versions
exist.
hugo server --bind 127.0.0.1 --disableFastRender --noHTTPCacheThe local preview is available at http://127.0.0.1:1313/. Add --buildDrafts
when reviewing unpublished content. Build the production files with:
hugo --gc --minifyDESIGN.md defines the colors, typography, spacing, page composition,
and component rules. Six files in assets/css own the named cascade layers:
tokens, base, layout, components, utilities, and print. Hugo combines
them into one minified stylesheet with a content fingerprint. Its build cache key
also follows source content so preview changes invalidate the correct resource.
Change semantic variables in tokens.css first, then the component that owns the
behavior. Keep language and theme variants in this system. Do not restore the
retired global CSS override files. Image and font provenance are documented in
their resource directories.
The reconstruction verification record describes completed checks and their limits.
Every push to main builds and deploys the site to GitHub Pages automatically.