Content #
Uteri publishes any folder of Markdown files. By default it reads
content/; --content DIR or the content setting points it anywhere:
uteri build --content ~/vault/notes --out site
Files and routes #
Routes come from file paths. By default every segment is slugified to ASCII words, keeping case:
| source | route |
|---|---|
content/index.md |
/ |
content/My Note.md |
/My-Note/ |
content/Folder With Spaces/áção.md |
/Folder-With-Spaces/acao/ |
content/notes/index.md |
/notes/ |
The title still comes from front matter, then the first H1, then the original file stem. Slugging affects URLs only.
routes = strict disables slugging and requires names that are already lowercase slugs ([a-z0-9-]). Use it when URLs must not drift:
routes = strict
Dot-prefixed files and directories (.obsidian/, .git/) and symlinks are always skipped. Add ignore to skip more:
ignore = Templates, _drafts
Names are matched exactly and apply to files and directories at any depth.
Two files that resolve to the same route are an error naming both files. A missing content/index.md is allowed; check warns that the site has no home page.
Attachments #
Non-Markdown files in the content tree are copied to the same relative path in the output, so content/posts/diagram.png becomes
/posts/diagram.png. This covers ordinary Markdown images:

A relative attachment link resolves against the note's own directory, so this works at any depth even though pages publish at pretty routes:
content/posts/page.md -> /posts/page/
content/posts/diagram.png -> /posts/diagram.png
 -> src="../../posts/diagram.png"
The same applies to other files such as PDFs. uteri check reports an
attachment link that no content file provides.
Generated pages win over attachments, then attachments win over static/; a conflict prints a warning. Turn copying off with:
attachments = off
Obsidian embeds (![[image.png]]) and transclusions are not converted.
Front matter #
Front matter is optional and must start on the first line:
---
title: A page
date: 2026-11-26
tags:
- wiki
- notes
aliases:
- Old Name
draft: false
template: page.html
---
Values are strings, true/false, bracketed lists ([a, b]) or YAML block lists (- item lines). Unknown keys are kept and exposed to templates. Malformed front matter is an error naming the file and line. tags and aliases become lists; a scalar is a one-item list. date is stored as an opaque string.
publish: false is treated as a draft, so a page using it works without editing the file.
Links #
[[target]], [[target|label]] and [[target#fragment]] resolve in this order: exact route path, alias, then page title, then last route segment.
Matching is case-insensitive. An unpiped link uses the resolved page title as its label.
[[tag:name]] links to a tag page, matching the slug first and then the tag label. Listing routes are ordinary targets: [[notes]] links to a collection listing when its route is /notes/.
Local Markdown links such as [x](note.md), [x](../note.md) and
[x](/note.md) are rewritten to the target route.
All generated links are relative to the current page, so the site works at any path and from file://.
Not supported: Obsidian block references ([[Note#^block]]), embeds and inline #tags outside front matter.
Aliases #
Two sources merge:
aliases:in front matter maps old names to that page.aliases.tsvin the project root maps any alias to a route:
old-home<TAB>/
rust-notes<TAB>/notes/rust/
Aliases are matched case-insensitively and resolve after exact routes but before titles. Links always point at the canonical route; an alias never becomes a URL. check rejects duplicate aliases and targets that do not exist.
Data tables #
data/*.tsv files are available to every page template as lists.
See TEMPLATES.md for the loop syntax.
Listings #
Each [[collection]] in site.conf generates a page at its route listing the public pages under its path. Listing pages have no Markdown source and no backlinks. Generated routes that equal a page route are errors, so a listing cannot replace a page.
See CONFIG.md for title and order.
Tag pages #
When public pages carry tags, uteri generates /tags/ and one page per tag at /tags/<slug>/. Labels group case-insensitively and the first spelling seen is displayed. Slug collisions are errors. There is no pagination.
Generated routes are checked against every page route and each other; a collision is an error in check and build.
Backlinks #
A page that is linked to gets a backlinks section listing the pages that link to it, excluding itself and drafts. Backlinks are sorted by title.
Drafts #
A page with draft: true or publish: false is not published, indexed or linked unless --drafts is passed. A link to an excluded draft is broken.
Project files #
templates/ and style.css are optional. Without them, uteri uses the
built-in theme selected by theme (uteri-lilium-night by default). A
project templates/ directory or style.css overrides the theme. uteri init writes only site.conf and content/index.md, so the
theme stays switchable.
The built-in templates are base, page, list, tag and tags. The
default layout is deliberately small: site name, page title, optional date
and tag links, content and backlinks; listings show a title and its date, and
the tag index shows counts. The header link is the way home; there is no
footer.
Check and build #
uteri check validates configuration, content, routes, templates, links and fragments. Structural problems and link problems exit 1.
uteri build aborts on structural problems but prints warnings for broken links. Output goes to site/ (or --out) through a staging directory and an atomic swap. An existing output directory without a .uteri marker is never replaced. The whole directory is regenerated: files not produced by the build, copied from the content tree or copied from static/ disappear.