I looked up something like “jekyll latex” and found some helpful resources:

It surprisingly… just works. Just had to c/p that stuff into a _includes/custom-head.html– although rn there’s a quirk w/ minima that the latest stable version is missing some features like custom-head.html, so I had to use minima master. Followed this github comment.

I’m not 100% sure katex is running v. mathjax– I don’t know how to tell– but the rendering works one way or another.

katex examples

double dollar sign \(f : A \to B \in \mathcal{P}B\)

some more text

katex and katex display w/o dollar sign

f:ABPB f : A \to B \in \mathcal{P}B

f:ABPB f : A \to B \in \mathcal{P}B

single dollar sign inside katexmm f:ABPBf : A \to B \in \mathcal{P}B

edit: 2025-09-28: Unfortunately, it looks like “minima master” ie minima 3.0-dev, breaks this site so I had to revert to minima 2.5.2 and backport the _includes/custom-head.html functionality, which thankfully in classic jekyll fashion– in the best sense–, just required that I create a local copy of _includes/head.html from minima 2.5.2, and backport the _includes/custom-head.html functionality from _includes/head.html from minima 3.0-dev.