notes: A Notebook That Anyone Can Read

Ellie Huxtable's personal site is built on Quartz 4, and the interesting part is not the framework. It is everything layered on top.

9 min read • View on GitHub • More from ellie

An open notebook resting flat on a wooden desk, with hundreds of thin threads rising from its pages and connecting to a dense canopy of small hanging paper cards above. The scene illustrates how private Markdown notes become a public, interconnected website, with a few blank cards near the edges suggesting notes not yet written.
A digital garden is a notebook with the walls taken down.

An update I liked this so much that I actually replaced my whole blog with it! Now my blog is just a part of the whole. Quartz updated around the time I wrote this, and it solved a bunch of my frustrations, so I'm using it now.

Ellie Huxtable, Author of the site · Keeping notes in public · Ellie's Notes
Key Takeaways

The setup that eats the writing

Most personal sites die the same way. You pick a generator, you tune the theme, you wire up a deploy, and somewhere in the third weekend of CSS the actual writing stops. The tooling becomes the hobby.

Ellie Huxtable's site is a counterexample worth studying, not because the tooling is minimal but because it is deliberate. The repository behind ellie.wtf is a Quartz 4 site, and it has been customized heavily. The difference is that every customization points back at the writing.

Really, I want 1) markdown and 2) a nice way of rendering my markdown

Ellie Huxtable, Author of the earlier personal wiki · I've started a personal wiki · Ellie's Notes

From Hugo wiki to Quartz

The path to this repository runs through several tools. In 2020 Ellie started a personal wiki, "basically just a hugo static site," a separate Markdown home for engineering notes and snippets kept apart from the blog.

Then came Obsidian, and a run of experiments pairing it with static generators and a Git sync plugin. By September 2023, the post Keeping notes in public reports that Obsidian Publish had solved the problem nicely, and that the author was updating it a few times a week.

The same post notes a change. Quartz had just been updated, it addressed a set of frustrations, and the blog got folded into the notes site.

A black ink hedcut-style editorial portrait of Ellie Huxtable, rendered from her public GitHub avatar with fine stipple dots for skin texture and hatching for hair.

Two layers in one repository

Open the repo and you find two things stacked on top of each other. The lower layer is Quartz itself: the build pipeline, the CLI, the Preact components, the plugins. The package.json still identifies the project as @jackyzha0/quartz, and the commit history is dominated by upstream maintainers.

The upper layer is the personal one: content/, quartz.config.ts, and quartz.layout.ts. About 60 notes, posts, project pages, and life logs sit in content/, and the two config files decide how all of it looks and behaves.

That split is the whole story. The framework is borrowed and well maintained. The personal layer is where the author made choices, and those choices are legible because they are written as data.

Quartz is a set of tools that helps you publish your digital garden and notes as a website for free.

Quartz project, Upstream project description · ellie/notes · GitHub repository description

The config is the product

quartz.config.ts is the single most important file for anyone customizing a Quartz site, and it reads like a manifest.

Site identity comes first: the page title, the base URL, and analytics set to Plausible, a privacy-respecting choice against the more common Google Analytics default. Then a publishing gate. The ignorePatterns list includes private, templates, and .obsidian. Anything in a folder named private never reaches the build. That one line is the boundary between the notebook and the public notebook.

The theme is hand-picked twice, once for light and once for dark. The light background #f5f2e9 is a warm paper tone, and dark mode #1a1915 is a warm near-black rather than pure black. Highlights are semi-transparent yellow and amber, a highlighter-pen effect. Typography runs Schibsted Grotesk for headers, Source Sans Pro for body, IBM Plex Mono for code.

Then the pipeline. Quartz processes content in three stages: transformers, filters, emitters. Order matters. FrontMatter runs first so that CreatedModifiedDate can prefer explicit dates over git timestamps. ObsidianFlavoredMarkdown runs before GitHubFlavoredMarkdown, so wikilinks and callouts resolve before generic rules apply. Filters decide what publishes, and here there is exactly one: RemoveDrafts. Emitters write the output, from content pages to social preview images.

A single inline comment captures the tradeoff the author is managing: "Comment out CustomOgImages to speed up build time." Generating a social preview image for every page costs build time, and the config makes that cost visible and optional.

Quartz runs content through three stages in order. The slug index is built before parsing so wikilinks can resolve.

Layout as data

quartz.layout.ts is the second config file, and it is a clean example of layout as declarative composition. Each page type is a plain object of component arrays. Shared components such as head, header, and footer apply everywhere. Content pages get a full left and right column. List pages get a simpler right column.

Two wrapper patterns do a lot of work. ConditionalRender takes a component and a predicate, and hides it when the predicate fails:

Component.ConditionalRender({
  component: Component.Breadcrumbs(),
  condition: (page) => page.fileData.slug !== "index",
})

That hides breadcrumbs on the homepage. Responsive decorators do the rest. DesktopOnly(Component.NowPlaying()) puts a media widget in the left sidebar on desktop, and MobileOnly(Component.Spacer()) adds breathing room to the mobile stack. The media widget is not a standard Quartz feature, and it is exactly the kind of small personal touch the layout file exists to make possible.

How the build actually runs

Underneath, Quartz does a two-pass build. Before parsing anything, it globs every file and computes allSlugs, the index of every page in the vault. Wikilink resolution needs that index, so the slugs are collected first and the Markdown is parsed second.

Parsing is the expensive part, and it runs across CPU cores. The worker entry point does not import the TypeScript source directly. It imports a transpiled bundle from .quartz-cache/, which the build produces at runtime with esbuild. That lets users edit their own TypeScript plugins without a separate compile step, at the cost of a cache directory that has to stay in sync.

Then there is watch mode, and a detail worth slowing down for. When files change, the watcher caches parsed syntax trees so unchanged files skip re-parsing. The ignore predicate combines three filters: .git/ paths, git's own ignore rules, and the config's ignore patterns via minimatch. The watcher respects both .gitignore and the author's publishing rules.

Change events accumulate before a rebuild runs, and the rebuild has to decide whether it is still the newest. It does that with a lock and a token, not a timer:

const buildId = randomIdNonSecure()
ctx.buildId = buildId
...
const release = await mut.acquire()
if (ctx.buildId !== buildId) {
  release()
  return
}

Every rebuild stamps a fresh ID onto the shared context. If several changes arrive while a build waits on the mutex, all but the most recent waiter see a stale ID and exit without building. It is debouncing without timing heuristics: simple, and correct.

A close-up of a narrow doorway with a queue of paper pages waiting outside. Most pages are faded and translucent, while only the last one is fully inked and walks through the door as the others dissolve into faint outlines. The scene illustrates how Quartz coalesces a burst of concurrent rebuilds into a single build using a lock and a token.
Last writer wins: a burst of file changes collapses into one build.

What it is up against

It helps to place this repository next to the tools it competes with, and the honest answer is that it does not compete with most of them. It is one person's deployable site, not a product.

ProjectWhat it isThe trade-off
Quartz 4The static-site toolkit this repo is built onCode-based and extensible, but you own the setup and the deploy
Obsidian PublishHosted publishing tied to the Obsidian workflowFar less configuration, but it is a commercial hosted service
HugoGeneral-purpose static-site generatorBroader than notes, so you assemble the notes experience yourself
ObsidianLocal-first Markdown knowledge baseThe writing layer, not the publishing layer

The measure that matters

The repository is small. The snapshot reports 28 stars and no forks, and it is not trying to be a product. It is one person's website, and its value to a reader is as a worked example: a heavily customized Quartz site with the personal choices left in the open.

But the author's own writing points somewhere else. The 2023 post is less about the tooling than about the outcome. The setup matters because it made regular note-taking happen, and the live notes index frames the whole thing plainly.

Work-in-progress explorations and things I've learned.

Ellie Huxtable, Author of the notes site · Notes · Ellie's Notes

That is the honest version of the promise every static-site generator makes. The tool is not the point. The notes are.