The source for n2d.io — a blog written in Typst and built by papyr, a minimal Typst static-blog engine. This repo is just the content and theme; the engine lives in its own project.
Install papyr once (it puts papyr on your PATH):
cargo install --path ../papyrThen, from this directory:
papyr serve # build, serve http://localhost:8080, rebuild on change
papyr build # build the static site into ./site
papyr new my-post # scaffold posts/my-post.typ
papyr clean # remove build artifactsAdd -v for verbose logging.
| Path | Purpose |
|---|---|
config.yaml |
Site identity: title, tagline, author, URL, description. |
posts/*.typ |
Blog posts (filename → /posts/<slug>.html). |
pages/*.typ |
Standalone pages (about, imprint). |
lib/template.typ |
Theme: post/page show-rules, nav + footer, link helpers. |
gen/*.typ |
Index, tag, and tags-index listing pages. |
assets/ |
style.css, the dark code-theme.tmTheme, and self-hosted fonts. |
For how to write posts, link between them, use math, etc., see the papyr README.