Source for lux-ferrata.org — a personal blog built with Quarto and deployed to GitHub Pages.
Requires Nix with flakes enabled. direnv is recommended.
# Enter the dev shell (automatic with direnv)
nix develop
# Start the live preview server
quarto previewThe shell provides Quarto and Jupyter kernels for Python 3.14 (scientific stack, PyTorch, JAX, QuTiP, Qiskit, Plotly, Manim), Julia 1.12 and Bash. nixpkgs is pinned to the same revision as the p-bit project.
Code cells execute in CI on Akmon; _freeze/ is a cache and is not committed.
- Copy
_templates/post/to a new folder:posts/my-post-title/ - Edit
index.qmd— fill in the frontmatter and write - Add a
thumbnail.svgor.pngfor the listing card - Set
draft: falsewhen ready to publish
title: "Post Title"
description: "One sentence for listings and link previews."
author: "Kevin Fanning"
date: 2026-01-01
categories: [Category]
image: thumbnail.png
image-alt: "What the image shows" # plain text; a render warns if missing
draft: trueTo assign a post to a project, add:
project: "project-slug"A post with project: also gets "previous / next" links through that project's posts, in date order.
- Create
projects/my-project/index.qmd - Add the listing filter pointing at the project slug:
---
title: "Project Title"
listing:
contents: "../../posts/*/index.qmd" # a bare ../../posts matches nothing
include:
project: "my-project"
sort: "date desc"
type: default
fields: [image, date, title, reading-time, description]
---- Tag posts with
project: "my-project"— they appear automatically.
The primary remote is Forgejo on Akmon. Pushing to main there runs .forgejo/workflows/publish.yml → ci/publish.sh, which renders the site in the flake's dev shell (executing changed posts, with a freeze cache kept on the runner) and force-pushes the result to the gh-pages branch on GitHub, which GitHub Pages serves. main is mirrored to GitHub by the same job.