ADR-0247: The site has a blog with an Atom feed and no third-party origins
- Status: accepted
- Date: 2026-12-05
- Deciders: Mahdi Amirabdollahi
Context
The decision records are already engineering essays with a real arc of failure and fix, and the questions people search for (is Kafka consumer lag exact, how to reset offsets safely, how an Artemis pair is told from a sampling artefact) land better on our own domain, next to the guide page that answers them, than on a third-party platform. The site already has a build, a deploy, a sitemap and a dead-link check (ADR-0061), and the no-third-party-origin rule of ADR-0217 and ADR-0246 still holds.
Decision
- The blog is a section of the VitePress site, in
site/src/blog/, in English only, at/blog/. A post is one Markdown file withtitle,date,descriptionandauthorin its frontmatter; a post withdraft: trueis not listed and not in the feed. Images live insite/src/public/blog/<slug>/as WebP. - The index is a plain list (date, title, description), newest first, read from
posts.data.ts, acreateContentLoader('blog/*.md')that drops the index and drafts. There are no tags page, comments or pagination. - The Atom feed is written by hand at the end of the build (
buildEndinconfig.ts) to/blog/feed.xml, as Atom 1.0 with each post's rendered HTML and root-relative links made absolute. It is written only when a post is published. The page head links it withrel="alternate". Nofeedpackage and no new dependency. - No third-party origin.
site/scripts/check-home.tsruns its origin allowlist oversite/src/blog/**/*.mdas well, so a post cannot add a CDN image, a script or an embed. - Scope is small on purpose. One post at launch and no promised cadence. A post is published when one is worth reading, and it states only what the code does today.
Consequences
- Search for the questions above lands on a page that links straight to the guide that converts.
- The feed is a build output: a post exists for readers once the site is deployed.
- A post's code excerpts are copied from the repositories and can age; a post states the day it was written.
- A blog costs a reader nothing they did not already load (the same theme, fonts and search), and costs the project the discipline of publishing only what is true.
Alternatives considered
- A blog on a third-party platform. Rejected: it splits the domain and brings third-party origins.
- The
feedpackage. Rejected: one function writes the whole file, and a dependency is more to audit. - Tags, comments and pagination. Rejected for now: one post does not need them.