doyu.dev
kojaen
2026-11-21

How this site gets built

This site has no framework. One Vite plugin generates every page at build time.

The flow

  1. Read the Markdown under content/ and split off the front matter (title, date, summary).
  2. Convert the body to HTML.
  3. Feed each language into template functions to produce the /ko/…, /ja/…, and /en/… pages.
  4. If a post has no translation, fill in another language's version and add a notice.

A template is a pure function from data to an HTML string. The dev server reruns it on every request, and the build runs the same function once and writes the files out.

Why do it this way

A framework felt like too much for a site with a handful of posts. And building it yourself lets you see what a static site generator actually does.