A table of contents with one line
Put toc: true in the front matter of a page:
---
title: A long page
toc: true
---
TileDown anchors the page’s h2 and h3 headings and puts a list of links to them
first. This page does it, so the list above this paragraph is built, not written.
The anchors
An anchor is the heading text in lowercase with hyphens. A repeated heading gets -2,
-3 and so on, so every link goes to its own heading.
When there is no list
A page with fewer than two such headings gets no list, and a page without toc is
unchanged.
The look
The editorial theme styles the list. The other themes show a plain list.