Status: Maintained

thisiszhixiang Personal Website

A bilingual personal website built with plain HTML, CSS and JavaScript. It brings together projects, writing and everyday records, manages them through a shared admin, and stays maintainable with a database, object storage and verification workflows.

Focus
Keep the public reading experience, content editing and data safety separate, so projects and personal records can keep being updated.
My role
Planning, interface and content design, development integration and maintenance
HTMLCSSJavaScriptCloudflare WorkersPostgreSQL/NeonR2GitHub Actions

A personal space that keeps changing

This site collects both software projects and personal records. Visitors can read articles, browse photos, see the music, films and places I have been enjoying lately, and leave a short note in the guestbook. My role covers planning, interface and content design, development integration and maintenance. The point is to keep this content up to date, rather than publish a static résumé once and leave it.

Separate interfaces for reading and editing

Public pages use black, gray and white, typographic hierarchy, thin rules and white space, so different kinds of content still feel like one site. The administrator signs in to an English-only Admin and works with shared forms, confirmation dialogs and error feedback. For example, leaving with unsaved content asks for confirmation first, and a failed save keeps the input. These behaviors are reused across sections, so each page does not maintain its own version. They are practical design choices, not the result of formal user research.

How static pages and dynamic data divide the work

GitHub Pages serves the public static assets such as HTML, CSS and JavaScript. Cloudflare Workers handle the APIs, admin permissions and the HTML for Projects and Blog articles. Neon stores content, ordering, sessions and background jobs, and R2 stores image bytes. Only specific documents are rendered by the Worker; the site is not server-rendered throughout. Changing admin content usually does not require rebuilding the site, while changes to code and asset references go through the release process.

Keeping bilingual content consistent

Fixed interface text is handled separately from the content the administrator writes. After a Mandarin source is saved, translation runs on a shared background queue, so saving never waits for an external provider. Source hashes and job leases stop outdated results from overwriting newer content, and visitors can still read the original while a translation is unfinished or has failed. Valid automatic translations of the current source carry a notice, while human-reviewed English keeps its own source and version and is never presented as machine translation.

The data work behind the photo gallery

The gallery list uses thumbnails, and the original image loads only in the lightbox. Large imports are split into bounded batches, and retries rely on sessions, file indexes, capacity reservations and ownership checks so the same photos are not stored twice. Event albums reuse existing photo identities and are sorted from oldest to newest by capture time and ID, while All photos keeps a shuffled view; both share a masonry layout that keeps the original proportions. A health record in the database and actually reading the image bytes are different kinds of evidence, so a single metadata row is not enough to claim that an original file has been verified. Each public event album has a direct URL built on a stable ID, which can be copied or shared with the native share sheet on supported devices. The Blog editor can insert the same album link, turning a short photo caption into a story with paragraphs. The link is saved with the article's drafts and published versions; renaming an album does not change where it points and does not rewrite published text in the background.

Boundaries for publishing and recovery

Blog working drafts, the last published snapshot and the publication history are stored separately. After a draft is saved, visitors still read the previous published version until the post is explicitly published. Business snapshots and R2 image bytes are also backed up separately: having the JSON does not mean the images are backed up, and an isolated restore drill does not mean the production database can be overwritten at will. Trash, restoring drafts and permanent deletion each have their own version and reference checks.

Trade-offs in verification and release

Local checks follow the risk of each change. CI tells documentation-only changes apart from code changes; a code version must pass the full quality and browser checks before the public allowlist artifact for that same SHA is published to Pages. Routine Worker releases are a separate step, and the CI dry run does not deploy them. When the shared HTML shell changes, the new front-end assets are confirmed to be available before the Worker that references them is released, so a new versioned URL never picks up old content first.

Current limits and next steps

External translation and map services have availability, quota and policy limits. Recommendations without a verified location offer an explicit external search instead of guessing where a place is. Narrow-window tests cannot replace a physical iPhone with Safari, and they are not a measurement of performance under production traffic. Next, I will keep adding verification on real devices and in real use, while keeping clear lines between sources, derived content and recovery evidence.

Architecture diagram of the personal website: public pages and the Admin connect through the Worker to Neon, R2 and background translation; GitHub Actions publishes Pages, and the Worker is deployed separately.Process / architecture diagram
System architecture diagram

Projects