Hello, world

1 min read

This is the first post. It exists so the site has something to render, and to document how posts work. Delete it once you have real writing.

Writing a post

Every post is a Markdown or MDX file in src/content/posts/. The file name becomes the URL. Frontmatter looks like this:

---
title: "A title"
description: "One or two sentences shown in the list and in search results."
date: 2026-09-13
topics: [math-physics, computing]
draft: false
---

The topics field must contain one or more of math-physics, philosophy, computing, or economics. Anything else fails the build, which is the point.

Math

Inline math like eiπ+1=0e^{i\pi} + 1 = 0 and display math both render at build time:

ex2dx=π\int_{-\infty}^{\infty} e^{-x^2}\,dx = \sqrt{\pi}

Code

Code blocks are syntax highlighted with a light and a dark theme:

def fib(n: int) -> int:
    a, b = 0, 1
    for _ in range(n):
        a, b = b, a + b
    return a

Search is provided by Pagefind, which indexes the built HTML. In development the index only exists after a build, so the serve command runs a build the first time.