Skip to content
Mira Okonkwo

documentation / content.md

Writing notes

A note is one Markdown file in src/content/notes/. The filename is the URL: src/content/notes/the-second-kickoff.md is served at /notes/the-second-kickoff. MDX (.mdx) works too, with the same fields.

A note

---
title: The second kickoff
date: 2025-11-03
updated: 2025-11-10
description: Why every project I have worked on gets a second kickoff in March.
tags: [meetings, process]
---

The first kickoff is for the people who sold the project...

## What changes by March

- the brief has been rewritten once
- someone new owns the budget

Start the body with prose. The title is printed by the page, so do not repeat it as a # heading; start sections at ##.

Fields

Field Required What it does
title yes The note’s title: tables, the page, the feed, the social card.
date yes YYYY-MM-DD. Sorts the notes and groups /notes by year. Dates are read as UTC, so they never shift a day.
updated Prints updated YYYY-MM-DD in the meta line under the title.
description The meta description and the feed summary. Without it, the first paragraph is used, cut at about 160 characters.
tags A list. The first tag fills the table’s tag column; all of them appear in the note’s path line.
draft true keeps the note out of every page, table, feed, search index and card. Default false.

Computed, so not fields: the word count and reading time (4 min · 812 words; Chinese and Japanese count by character), the year groups, every URL, and in Pro the links in.

The source gutter

Every block keeps the Markdown that made it, printed small and grey in a gutter to the left of the text. You do not write anything extra: the markers are read from your file when the site is built.

You write The gutter shows
## Heading ## (and ### … ###### for deeper ones)
> quote >
- item, * item - (any bullet is shown as -)
3. item 3. (the real number, also in nested lists)
``` ``` beside the code block
--- ---
[^1] [^1] beside the footnote
| a | b | | beside the table
![alt](pic.png) ![] beside a picture on a line of its own
$$ $$ beside a formula on its own lines

Plain paragraphs have no marker: a line with a marker is structure, a line without one is prose. On screens narrower than 48rem the gutter folds into a prefix on the block’s first line.

Footnotes are listed at the end of the note, numbered in the order you first refer to them, whatever their label.1 To hide every marker, set monoline.gutter: false in src/config.ts (customization.md).

Write the link the way your editor does. All three point at src/content/notes/design-review-rules.md:

You write Works in
[[design-review-rules]] Obsidian and other wiki-style editors
[the rules](./design-review-rules.md) VS Code, GitHub, any Markdown preview
[the rules](/notes/design-review-rules) the site only

Wikilinks take a label and a heading: [[design-review-rules|the rules]], [[design-review-rules#Who to invite]]. The name is matched the way file names become addresses, so [[Design review rules]] works too. A wikilink without a label prints the linked note’s title. A wikilink or file link to a note that does not exist yet prints as plain text, not as a broken link; once you write that note, save the linking note again (or run a fresh build) and it becomes a link, because Astro keeps each note’s rendered HTML until the note itself changes. Links inside code are left alone.

In Pro these links are counted at build time, in all three forms. The note that is linked to lists the notes that link to it under ← linked from, its meta line says 3 links in, and the tables get a links in column. Links to a draft or to a note that does not exist are not counted, and neither are full URLs (https://you.com/notes/…).

A file link is read from the notes folder, not from the linking note’s folder: in a note in a subfolder, write ./work/kickoff.md (or [[work/kickoff]]) for src/content/notes/work/kickoff.md.

Math

Write a formula between dollar signs: $…$ inside a sentence, $$…$$ on lines of its own. It is set with KaTeX when the site is built, so the page needs no script, and only a note with math loads KaTeX’s stylesheet. Chemical equations use mhchem: $\ce{2H2 + O2 -> 2H2O}$.

Two dollar signs in one paragraph ($20 and $30) read as a formula between them. Write \$ for a dollar sign you mean literally.

In Pro, \label{eq:name} in a $$…$$ formula numbers it, and $\eqref{eq:name}$ anywhere in the note prints (1) as a link to it ($\ref{eq:name}$ prints the bare number). A reference may come before its equation. Copying a formula copies its LaTeX source.

For a statement and its proof, rename the note to .mdx and import Theorem: <Theorem kind="definition" title="Optional name">…</Theorem>. kind is theorem, lemma, proposition, corollary, definition, example, remark or proof. The first six share one count per note; a proof ends with ∎. The words are ui.statements in src/config.ts.

Pictures

Put the picture next to your notes, for example in src/content/notes/images/, and link it relatively: ![What the picture shows](./images/export-path.svg). It is resized and converted at build time (SVG files are served as they are), never wider than the text, with a hairline border so a white screenshot keeps its edge. On a line of its own it gets ![] in the gutter. The alt text is what a screen reader says instead of the picture: describe what it shows.

Long notes (Pro)

A note with three or more ## sections and at least 800 words opens with a contents list: its sections, each with its ##, linking to the heading. Shorter notes do not get one.

Tags

Tags are free text. In Pro every tag has a page at /tags/<tag>, /tags lists them all with their counts, and the tags in path lines and tables link to them. Tags are lowercased and joined with hyphens for the URL: Plain text becomes /tags/plain-text.

Pages

src/pages/about.md is a plain page in the note column, with the source gutter:

---
layout: ../layouts/Page.astro
title: about
description: Who writes these notes, and what they are for.
---

Add another page the same way: src/pages/colophon.md is served at /colophon. Add updated: 2026-10-08 to print a date under the title, as /now does (Pro). Add the page to nav.header if it belongs in the header.

The source of a note (Pro)

Every note is also published as the file it was made from, front matter included, at /notes/<slug>.md. Each note ends with a view source line that links to it. Drafts are not published there either.

Adding a field

Add it to the notes schema in src/content.config.ts and make it optional (.optional()) or give it a default (.default(…)), so existing notes keep building. Then print it where you need it: the note page is src/pages/notes/[...slug].astro, the table is src/components/notes/NotesTable.astro.

Footnotes

  1. So [^why] is printed as [^1] if it is the first footnote you refer to. Labels are for you, numbers are for the reader. ↩

next Customization