Publishing on onhlt means merging a pull request. There is no admin panel and no rebuild: the site is up to date a couple of seconds after the merge.
The content repository#
Each article is a folder, with one file per language:
posts/2026/git-as-a-cms/
├── en.mdx
├── fr.mdx
└── cover.svg
The folder name is the translation key. It links the English and French versions, which can each have their own slug.
Verifying the webhook#
GitHub signs every delivery with HMAC SHA-256. The handler recomputes the signature over the raw body and compares it in constant time before doing anything else.
Fetching and replacing#
The sync job runs in the background so the webhook answers 202 Accepted immediately.
BEGIN;
DELETE FROM posts; -- cascades to tags and related posts
INSERT INTO posts (...) VALUES (...);
COMMIT; -- readers switch to the new version atomically
Replacing everything sounds wasteful, but a blog has hundreds of documents, not millions. The transaction takes milliseconds and readers never see a half-synced site, thanks to MVCC.
Drafts and previews#
A post with draft: true is indexed but not listed. It gets a preview URL derived from an HMAC of its key, so it can be shared for review without being guessable.
That is the whole CMS: Git for writing and review, Rust for validation, PostgreSQL for queries.