This site is deliberately simple. It's a portfolio for four C++ projects and a place to write about them, so it needs fast pages, good link previews and a frictionless way to publish. It doesn't need a JavaScript framework.
The stack
- Front end: plain HTML templates, CSS and vanilla JavaScript modules. No build step and no bundler.
- Back end: a small ASP.NET Core minimal API in C#. It reads Markdown files, renders them with Markdig, and fills slots in the HTML templates. Every page arrives fully rendered, which keeps search engines and link previews happy.
- Data: SQLite, holding only view counts and likes. Visitors are identified by a salted hash, never by their address.
- Hosting: a Docker container on a home TrueNAS server, published through a Cloudflare Tunnel, so no ports are opened on the network.
Publishing a post
A post is a Markdown file with some front-matter:
---
title: Building this site
summary: Why this site is a small C# server…
date: 2026-11-18
tags: [Web, C#, Meta]
---
The content folder is mounted into the container, and the server watches it for changes. Saving a file publishes the post, with no rebuild or restart needed.
Maths and code
Posts about quantum chemistry need equations, so KaTeX renders them, but only on pages that use it. The electronic Schrödinger equation, for example:
Code blocks are highlighted, including GLSL:
layout(local_size_x = 64) in;
layout(std430, binding = 0) buffer Data { float values[]; };
void main()
{
uint i = gl_GlobalInvocationID.x;
values[i] = values[i] * values[i];
}
What's next
Write-ups on the projects themselves: how Dahlia translates one shader for three APIs, why dhERI's GPU kernels are currently slower than one CPU thread, and how Space Visualiser decides where the planets are on any date in six thousand years.