🧶 MarkloomCollection · milan
Pages

Order your pages

Control the sidebar order and page titles with _toc.md.

Updated 7/31/2026 · by Markloom

Without a _toc.md, pages are listed in file-name order and titled by their file name. That is fine for a handful of pages and wrong for almost any real site — "Advanced" should not come before "Getting started" just because A sorts first.

Add a file called _toc.md to the folder:

markdown
- [Welcome](welcome.md)
- [Getting started](getting-started.md)
- [Advanced usage](advanced.md)

Three things happen:

  1. Listed pages appear in the order you wrote them, in the sidebar and in prev/next links.
  2. The link text becomes the page's title in the navigation.
  3. Anything you did not list still appears, after the listed pages, in file-name order. Nothing disappears because you forgot it.

Shorter forms#

The link text is optional — a bare file name works and keeps the file's own name as the title:

markdown
- welcome.md
- getting-started.md

The .md extension is optional too, and matching ignores case. All four of these find the same file:

markdown
- [Welcome](welcome.md)
- [Welcome](welcome)
- welcome.md
- Welcome.MD

Notes and headings are allowed#

Only lines that look like list items are read. Anything else is ignored, so you can keep the file readable:

markdown
# Navigation

Order matters here — reorder freely, nothing else needs updating.

- [Welcome](welcome.md)
- [Getting started](getting-started.md)
Tip

A file listed twice is used once, at its first position. A file that no longer exists is skipped silently, so a stale line will not break the site.

Published with Markloom — files live in the author's own storage · Report

Order your pages — Markloom Docs — Markloom