how this notebook is made

Colophon

This site is a small C# program that turns Markdown and YAML into static HTML.

The build

The site is a .NET 10 console app that uses Statiq Web. Posts are Markdown files with YAML front matter; the layouts are Razor. dotnet run writes plain HTML, CSS and a few kilobytes of JavaScript into output/, which any static host can serve.

A few parts are custom C#:

  • Typed site data. My profile, skills and projects live in YAML files, read into C# classes. The home page, the work page, the structured data for search engines and the JSON API all read the same data.
  • A JSON API pipeline. /api/me.json and /api/posts.json are generated by a custom Statiq pipeline.
  • English and Bangla. Bangla posts live under /bn/, with their own lang, dates, interface text and RSS feed. When a post exists in both languages, each version links to the other with hreflang, and the original says which one is the translation.
  • Build-time code highlighting, so no highlighting script is sent to your browser.

The design

A paper notebook: a dot-grid page, a red margin line, index cards, a highlighter and some washi tape. Headings are set in Fraunces, text in IBM Plex Sans and Newsreader, handwriting in Caveat, code in JetBrains Mono, and Bangla in Hind Siliguri and Tiro Bangla.

The green check only appears where there is proof behind it: tests that pass, a site that is live, a post you finished reading.