~/notes · garden

build-time-backlinks

The backlink graph for this garden is built by globbing the raw note files and regexing out every [[wikilink]]. Two maps — outgoing and incoming — and the note template renders “linked from” as plain HTML.

Costs nothing at runtime. Related: [[islands-budget]] — this is the pattern that keeps the budget at zero, and [[content-collections-typed]] provides the slugs.

Failure mode to watch: a wikilink to a note that doesn’t exist yet just renders as a dead link. That’s fine — in a garden, a dead link is a to-do, not an error.