Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Listsome

A static site generator for sharing do-it-yourself project guides. You write Markdown with YAML frontmatter in a folder per project, Listsome builds a deployable static site.

What works today

CommandWhat it does
listsome initWrites listsome.toml, a projects/ directory, an output/ directory, a .gitignore, and a site README
listsome newWrites a project folder with index.md and an assets/ directory
listsome buildParses every project, renders HTML, processes images, and writes index pages, category pages, tag pages, and an Atom feed
listsome serveRebuilds on file changes and serves the result with live reload
listsome checkParses every project and reports what failed
listsome listPrints the projects that match a category or difficulty filter
listsome deployCopies output/ to a remote host with rsync and sends webmentions
listsome webmentionFetches, verifies, moderates, and tests webmentions

Every project lives in projects/<slug>/index.md. The parser reads step headers, callout markers, and materials tables out of the Markdown and leaves the rest alone. Your files still render on any forge that shows Markdown.

Listsome logs at the warn level. Commands that report to the terminal, such as listsome list and listsome check, print nothing until you raise the level:

RUST_LOG=info listsome list --category electronics

Why it looks like this

  • Standard Markdown. No proprietary syntax. A project file that listsome renders and a project file that GitHub renders disagree only where listsome adds structure.
  • One binary. No runtime, no database, no Node install.
  • Opinionated defaults. The built-in theme assumes project guides: step lists, bills of materials, hero images.
  • Portable output. Any static host takes the output/ directory.

Site layout

my-site/
├── listsome.toml          # Site configuration
├── projects/              # One directory per project
│   └── my-project/
│       ├── index.md       # Project content with frontmatter
│       └── assets/        # Images and downloads
├── assets/                # Site-wide files, copied as-is
│   └── custom.css         # Replaces the built-in style sheet
└── output/                # Generated site, gitignored

Where to go next

Quickstart

What you need

Rust 1.96 or newer, because the crate uses edition 2024. Git, for the install command. Beyond that, Listsome is one binary with no runtime.

Install

Listsome isn’t on crates.io, so cargo install listsome fails and the registry says there is no such crate. Install from the Codeberg repository instead:

cargo install --git https://codeberg.org/RyanParsley/listsome

Release tags publish no prebuilt binaries yet, so building from source is the only path. To follow the main branch, clone the repository and install from the working directory:

git clone https://codeberg.org/RyanParsley/listsome.git
cd listsome
cargo install --path .

Check the install:

listsome --version

Create a site

listsome init my-projects
cd my-projects

listsome init writes five things: listsome.toml, projects/, output/, a .gitignore that hides both generated directories, and a README for your site. It takes the site name from the directory and the author from $USER. Pass --name, --author, --url, and --about to set them yourself:

listsome init my-projects --name "The Workbench" \
  --author "Ryan" --url "https://workbench.example"

Edit listsome.toml before the first build. Three fields matter most: the site name, the author that templates print, and the url that feeds and webmention targets build from. The configuration reference covers the rest.

Add a project

listsome new smart-thermostat --difficulty intermediate

This writes projects/smart-thermostat/index.md and an empty assets/ directory beside it. The new file carries frontmatter, a materials table, and two empty step headers, so you fill in a shape rather than start at a blank page. Add --title and --description to skip the placeholders:

listsome new led-chaser \
  --title "LED Chaser" \
  --description "A 555 timer that walks eight LEDs in a circle"

Put images and downloads in the project’s assets/ directory and reference them by relative path: ./assets/hero.jpg.

Build

listsome build

The build reads every projects/*/index.md and writes:

  • output/index.html and one output/<slug>/index.html per project
  • output/categories/ and output/tags/ index pages
  • output/rss.xml, an Atom feed, with output/feed.xslt to style it in a browser
  • copies of projects/<slug>/assets/, with images resized
  • output/.webmentions/outbound.json, the link manifest that listsome deploy sends from

A draft project stays out of the build. status: draft in frontmatter marks a draft, and listsome build --drafts publishes them anyway. A project whose frontmatter says nothing about status is live either way.

Preview

listsome serve

The dev server listens on 127.0.0.1:8080, rebuilds when a project file changes, and reloads the browser over a WebSocket. Set --open to launch the browser, -p to pick another port, and --drafts to preview drafts. The server prints its own address at the info level, so a quiet terminal doesn’t mean a dead server:

RUST_LOG=info listsome serve --open

Publish

Any static host takes the output/ directory. Copy it to Netlify, Codeberg Pages, S3, or nginx and the site is live.

For a host you control, [deploy] in listsome.toml carries the rsync target, and listsome deploy pushes output/ and then sends webmentions for the links your projects point at:

listsome deploy --dry-run   # shows the rsync command
listsome deploy

Deploys need [deploy].host, [deploy].user, and [deploy].path, and they run rsync over ssh.

Command reference

CommandWhat it does
listsome init [PATH]Writes a new site
listsome new <NAME>Writes a new project
listsome buildGenerates the site
listsome serveRebuilds and serves with live reload
listsome check [PROJECT]Parses projects and reports failures
listsome listPrints projects that match a filter
listsome deployPushes output/ with rsync, then sends webmentions
listsome webmention <SUBCOMMAND>Fetches, moderates, and tests mentions

Useful flags:

  • listsome build: --drafts, --clean, -o <DIR>, --base-url <URL>
  • listsome serve: -p <PORT>, -H <HOST>, --open, --drafts
  • listsome list: --category <NAME>, --difficulty <LEVEL>, --drafts
  • listsome new: --title, --description, --difficulty
  • listsome init: --name, --author, --url, --about
  • listsome deploy: --dry-run
  • listsome webmention: fetch, pending, approve <SOURCE>, reject <SOURCE>, show <SLUG>, test <SOURCE> <TARGET>

The command-line tool also accepts -C, -v, -q, and --color, and drops all four before any command runs, so --help promises more than the build delivers. Keep listsome.toml in the directory you run from, and control output with RUST_LOG, as Troubleshooting describes.

Next steps

Read Project Format to learn what the parser reads out of your Markdown, then Configuration Reference for every field you can set.

Project Format

A project is one directory with one required file: projects/<slug>/index.md. The frontmatter block carries the facts a build needs, the Markdown body carries the guide, and assets/ beside it carries the media.

Listsome reads patterns, not syntax. Nothing in a project file is Listsome syntax: the same file on Codeberg or GitHub renders as a normal Markdown document, and a generator that never heard of Listsome still shows your guide. Where Listsome does recognize a convention, it adds structure instead of replacing your words.

Folder layout

projects/
└── smart-thermostat/
    ├── index.md          # required
    └── assets/           # optional
        ├── hero.jpg
        ├── wiring-diagram.png
        └── firmware.ino

The build walks projects/ two levels deep and treats every directory that holds an index.md as a project. It skips a directory without one without a word, and it skips a project that fails to parse just as quietly. Reference assets by relative path, ./assets/hero.jpg, so the same file works in a preview and in the built site.

Frontmatter

Two fields have no fallback, and the build names the file when one is missing:

FieldExampleWhat it changes
titleDIY Smart ThermostatPage heading, tab title, feed entry title
descriptionA $20 ESP32 thermostat for Home AssistantCard summary, feed summary

Everything else is optional:

FieldExampleWhat it changes
slugsmart-thermostatURL segment, defaults to one built from the title
difficultyintermediateBadge text and listsome list filter, one of beginner, intermediate, advanced
time4 hoursTime badge on the page and the card, printed as written
cost23.50Cost badge, see how costs add up
currencyUSDPrefix on the cost badge, USD 23.50 instead of $23.50
categories[electronics, arduino]Category pages and the card badge row
tags[esp32, iot]Tag pages
authorRyanByline, defaults to Anonymous when absent
date2026-03-08Publication date, and the newest-first order of every listing
updated_at2026-03-12The updated field of the feed entry
statusdraftdraft, published, or archived, archived behaves like published
featuredtruePuts the project in the featured grid on the index page
hero./assets/hero.jpgCard image on the index, category, and tag pages
images[./assets/a.jpg]The build reads it, no template prints it

Listsome reads no other keys. A build prints each one it’s about to drop as an unknown frontmatter key, names the file, and suggests the closest real key when one is close:

Unknown frontmatter key `draft` in projects/led-chaser/index.md is ignored.
Did you mean `status`?

That message exists because draft: true is what every other generator spells, and here it publishes the project while the warning says so.

The build reads mastodon, pixelfed, peertube, and bluesky into the project model, and no template prints them. Set social handles for the site in listsome.toml instead.

How costs add up

A cost in the frontmatter wins. With none, the build takes the total of the project’s bill of materials, so a guide that itemizes itself prices itself. When both exist and disagree, the build prints a warning with both figures and the filename, and the frontmatter still wins.

Drafts

status: draft holds a project out of listsome build. --drafts and [build] drafts publish them anyway. Listsome publishes a project that says nothing about status, because listsome init writes status: published into every project it scaffolds, so a missing field means hand-written content that meant to be public.

What the parser recognizes

Three conventions earn structure today.

  • Step headers, ## Step 1: Title and its two siblings
  • Materials tables under a materials heading
  • Callout markers that open a paragraph

Everything else in your Markdown renders as Markdown. A ## Tools header is an <h2> over your list, which is what it was before Listsome existed. See Headers that do nothing yet for the conventions that plans cover.

Step headers

A level-two heading that opens with Step, Part, or Phase, then a number, then a colon becomes a step:

## Step 1: Test your components
## Part 3: Assembly
## Phase 2: Planning

The number you type isn’t the number you get. The build counts steps in document order, so a guide that jumps from Step 2 to Step 4 still shows two steps, numbered 1 and 2. Step titles feed a navigation list at the top of the steps section, and each step becomes an h-event article.

Two things about that section are worth saying out loud.

The page shows the guide twice: the body renders in full, including every step heading and paragraph, and the steps section then repeats each step with its own heading and extracted body.

The extracted body keeps the Markdown the author wrote. Lists, links, images, callouts, and inline code survive into the step article. A non-step heading before the first step no longer empties the step bodies. Issue #86 recorded both defects, and the fix for them landed. The example project’s snapshot locks the behavior in place.

Materials tables

A table under a materials heading becomes a bill of materials the site can publish and another site can read. Three headings qualify, compared on the whole heading once the parser normalizes case and curly apostrophes: What You'll Need, Materials, and BOM. A table under a subheading of one still belongs to the bill, so ## Materials with ### Spare parts under it prices both tables together. Spell the heading exactly, because ## What You Need without the apostrophe is a plain heading over a plain table:

## What You'll Need

| Item | Qty | Cost | Source | Note |
|------|-----|------|--------|------|
| ESP32 DevKit | 1 | $6.00 | [Supplier](https://example.com) | Any board works |
| DHT22 sensor | 1 | $4.50 | [Shop](https://example.com) | |

The parser compares each column heading with the aliases of one role and ignores case:

RoleColumn headings it answers to
ItemItem, Part, Component, Name, Material
QtyQty, Quantity, Count, Amount
CostCost, Price, Unit Cost, Each
SourceSource, Link, Buy, Vendor, Supplier
NotesNotes, Description, Comment, Note

A role takes the first column that answers to it, and no column answers to two roles. The build still renders a column that no role claims, because reading a table isn’t a license to delete parts of it. A table whose columns match nothing stays the plain table you wrote.

The bill replaces the table where it stands, so the page carries one bill and not two. Each row that names a part carries h-product markup: p-name, p-quantity, p-price, and p-URL when the source cell links somewhere.

The build sums the Cost column into a total row, written in the notation the column uses itself, so $45.00 and 45.00 EUR both look like their cells. A cost that isn’t a number shows up in the bill and stays out of the total, which is the right answer for Free, -, and 20–30. The parser refuses a figure written with a decimal comma, because the wrong guess prices a $1200 part at $1.20. A bill with no cost column gets no total.

Callouts

A paragraph that opens with a marker becomes a styled box. Two markers work, and you need one of them.

**Warning:** Turn off power at the breaker before proceeding.
**Pro tip:** Buy the fasteners in bulk.

⚠️ The capacitor holds a charge even when unplugged.
💡 **Tip:** Print the mount before the enclosure.
MarkerBoxTitle it prints
**Warning:**, **Caution:**, **Hot:**warningyour label, as written
**Tip:**, **Pro tip:**tipyour label, as written
**Note:**noteyour label, as written
⚠️, 🔥warningWarning, Hot
💡tipTip
📝, ℹ️noteNote

The marker has to open the paragraph. Warning: high voltage with neither bold nor emoji stays ordinary prose, so the build never rewrites a sentence that merely begins with one of these words, and a marker inside a code block or a table cell isn’t a marker. An emoji alone takes its kind’s name as the title, and a label beside an emoji decides the title.

The box is an <aside> with a <p class="callout-title"> inside it, so it stays identifiable in a text selection, in a printed page, and in a feed reader that drops the style sheet.

Assets

The build copies projects/<slug>/assets/ into the project’s output directory and re-encodes images on the way. Files that aren’t images copy unchanged.

assets/
├── hero.jpg                 # card image, named in frontmatter
├── thumbnail-print.jpg      # resized to the thumbnail width
├── step-01-breadboard.jpg
├── diagram.svg
├── firmware.ino
└── schematic.pdf

The build processes a filename that starts with step- at max_thumb_width and uses max_content_width for other images. The word thumbnail in a filename has no effect. The step-NN prefix only picks a width. Nothing pairs a step with an image, and no code looks up a project’s hero by filename. hero is a frontmatter field.

Images inside the body get grouped and get lightbox markup: consecutive images with no text between them share a row, and a click opens the full file. The images frontmatter field is a different story. The build reads the list and hands it to the template context, and no built-in template prints it, so a gallery declared in frontmatter appears nowhere on the page. Use images in the body until a template catches up.

A download link is a link. [Download the firmware](./assets/firmware.ino) renders as an ordinary link with no size and no type, and the build never checks that the target exists, so a typo in an asset path shows a broken link on the page and a clean build. Issue #80 covers both.

Video needs raw HTML, and CommonMark passes it through:

<video src="./assets/demo.mp4" poster="./assets/demo-thumb.jpg"></video>

Headers that do nothing yet

A decision record documents the following headers, and issue #73 plans the work. Each renders as a plain heading over plain content:

HeadingPlanned as
## Tools, ## EquipmentTool list
## Downloads, ## FilesLinks with file metadata
## Troubleshooting, ## FAQCollapsible section
## Variations, ## AlternativesVariation cards

A ## Step 1 heading with no colon, ## STEP 1: Title in caps, and ## 1. Gather the parts are all plain headings too. The step pattern wants the word, the number, and the colon.

A complete example

---
title: Paperclip Antenna
description: Free over-the-air TV from a paperclip
difficulty: beginner
time: 5 minutes
cost: 0
categories: [radio]
tags: [antenna, tv]
date: 2026-04-02
status: published
---

# Paperclip Antenna

Need free over-the-air TV? Unbend a paperclip.

## What You'll Need

| Item | Qty | Cost |
|------|-----|------|
| Paperclip | 1 | $0 |
| Coax adapter | 1 | $5 |

## Step 1: Bend the clip

Open the clip into an L shape and leave the short leg about two inches long.

**Warning:** Unplug the TV before you touch the antenna connector.

## Step 2: Point it

Screw the adapter into the coax input, stand the clip upright, and run a
channel scan. Rotate it a few degrees at a time until the count goes up.

That file is under 40 lines. The build turns it into a card on the index page, a priced bill of materials, two steps, and a warning box that a plain Markdown renderer still shows as a paragraph.

Tools Content Design

This page describes the Tools collection Listsome builds today. The decision record holds the decision behind it.

Goal

A maker keeps a curated list of tools they own, shares why each one is worth having, and earns a commission when a reader buys through a configured link. The maker writes the affiliate identifier once and writes ordinary product links in each tool file. The build applies the identifier.

The old site at yourpalryan.com is the model. It had a Tools index, one page per tool, a brand label, a short review, a direct purchase link, and an updated date. Each old file held only a title and a link field. A level two heading carried the brand, and the listing derived its blurb from the body. The new version keeps that low ceremony and moves the affiliate link out of each file and into configuration.

What stays out

  • Tool lists inside project pages. Issue #79 covers that feature, and it uses a different shape: a checklist derived from a Markdown list. This proposal adds a separate collection.
  • Affiliate rewriting in project bodies, materials tables, or downloads. Decision record 0004 cut that feature and this proposal leaves it cut.
  • Categories, feeds, and a search index for tools. A tool is a short curated entry, not a dated post. The old collection had an author sidebar and share links, and those stay out. A tool can carry an image and tags, and decision record 0010 replaced the single product link with an ordered list of purchase options.
  • Platform support beyond Amazon. The configuration shape leaves room for more platforms, and the first release recognizes Amazon alone.

Content format

A tool lives in tools/<slug>/index.md, beside the projects/ directory. The frontmatter names the tool, its maker, and the product page:

---
title: Tablesaw
affiliate:
  - title: Amazon
    url: https://www.amazon.com/dp/B07EXAMPLE
---

I upgraded from a lower end contractor saw. The fence holds its setting and
the dust ports fit my shop vacuum.

Listsome requires title. The fields slug, brand, description, updated_at, image, tags, and affiliate are optional. affiliate is an ordered list of purchase options, each a store title and a url. A tool with no entries is a write-up with nothing to buy. A missing slug comes from the title. With no description, the listing uses the first paragraph of the body, which is how the old site derived its blurb. A missing brand prints no brand label. The body is ordinary CommonMark, rendered with the same options a project body uses. Unknown frontmatter keys produce a warning that names the file and the key, matching the behavior project files already have.

The old file put the brand in a level two heading. This format moves it into frontmatter so the listing can show it without parsing body headings. That’s a deliberate departure from the old file shape, not a loss of information.

An image is a full URL or a path under the site’s assets/ directory. The tools index lays it out to the left of the title, brand, and blurb. A tags list adds links to static filter pages. For example, tags: ["Woodworking"] puts the tool at /tools/tag/woodworking/, and /tools/tags/ lists every tag with a count. The build needs no JavaScript for the filtering.

When a tool file fails to parse, the build warns with its path and leaves it out of the site. Issue #84 records the silence this avoids for projects.

Affiliate configuration

The site owner puts the Amazon identifier in listsome.toml:

[affiliates]
disclosure = "Some links earn me a commission at no cost to you."

[affiliates.amazon]
tag = "ryanparsley-20"
FieldDefaultWhat Listsome does with it
affiliates.disclosureA built in sentencePrints before each tool’s Purchase line
affiliates.amazon.tagNoneSets the tag parameter on Amazon product links

With no [affiliates.amazon] table, product links render as the author wrote them. An empty tag is a configuration error that names the field. A key under [affiliates] that Listsome doesn’t recognize is also a configuration error, so a typo can’t look like a working setting.

Resolution is a pure transform from one purchase option’s URL and the affiliate configuration to a rendered link, applied to each entry in affiliate:

  1. When the URL points at an Amazon storefront, Listsome sets the tag query parameter to the configured value. Listsome replaces an existing tag, keeps the other parameters and the fragment, and marks the link as sponsored.
  2. Any other URL, including a minted AliExpress s.click link, prints exactly as written. It’s still a sponsored link, but Listsome never adds a tag it can’t mint for that store.
  3. A non-Amazon host, a relative path, or a URL that won’t parse renders as written.
  4. With no [affiliates.amazon] table, Amazon URLs render untagged too.
  5. Every option carries rel="sponsored nofollow", because an affiliate entry is a referral by intent. A write-up with nothing to buy lists no options.

Amazon storefront hosts come from a fixed list that covers the www. and smile. forms of the country domains. A host that merely starts with amazon. doesn’t qualify, so a lookalike domain never receives the tag.

Resolution uses a URL parser rather than string concatenation. The operation is idempotent: applying it twice gives the same link.

Generated pages

PathContents
/tools/Tag filters, disclosure, then one page of tools with a thumbnail, brand, title linked to the resolved URL, description, and a permalink
/tools/page/<n>/Later pages of the tool listing
/tools/<slug>/Brand, title, rendered body, Purchase options, updated date, disclosure, and a link back to the index
/tools/tags/The first page of tool tags, each with its tool count
/tools/tags/page/<n>/Later pages of the tag index
/tools/tag/<tag>/The first page of tools carrying one tag
/tools/tag/<tag>/page/<n>/Later pages of that tag filter

items_per_page splits /tools/, /tools/tags/, and each /tools/tag/<tag>/ listing. The build writes later pages under page/<n>/ beside the first page, and every page links to the one before it and after it. A listing that fits on one page prints no page links.

Affiliate links carry rel="sponsored nofollow". Ordinary product links carry no rel value. The disclosure is visible before the first affiliate link on each page, and the site owner can replace the wording in configuration.

The site header gets a Tools link when the build discovers at least one tool. A site with no tools keeps its current header. Tool links stay out of the Atom feed and out of the webmention manifest, since a purchase link doesn’t answer a mention.

Data flow

  1. Configuration loading parses [affiliates] and rejects bad values.
  2. Tool discovery reads each index file and warns about the ones it skips.
  3. Link resolution applies the preceding rules to each product URL.
  4. A tool context carries the resolved link, the sponsored flag, the rendered body, and the permalink to the template renderer.
  5. The generator writes the index page and one page per tool, then reports the tool count beside the project count.
  6. listsome new-tool <name> writes a starter file under tools/. listsome check validates tool files as well as project files.

The parser, the resolver, and the context builder stay pure. File reading and writing stay in the shell, as they do for projects today.

Testing

  • Unit tests check link resolution with an Amazon tag, with the replacement of an existing tag, with other parameters and the fragment kept, with a non Amazon host, with a short link, with a broken URL, with no configuration, with an explicit override, and with an opt out.
  • Parser tests for required fields, the derived slug, the override forms, and the warning for an unknown key.
  • Renderer tests for both pages, the sponsored attribute, the disclosure, and an empty index when no tools exist.
  • A tools/tablesaw/index.md file in examples/basic, with snapshots for /tools/ and /tools/tablesaw/. The diff must stay additive so existing project output doesn’t move.

Migrating the old site

Each old tool becomes an index file. title stays. The old link field becomes a single affiliate entry, {title: Amazon, url: …}. The level two brand heading becomes brand frontmatter, and the review paragraph stays as the body. The old listing derived its blurb from the body, so a new description is optional. The old amzn.to link needs its canonical Amazon product URL before it can carry a configured tag. That conversion is the one manual step in the migration.

Deferred questions

  • Should a purchase option ever be non-sponsored, a vendor page the author doesn’t earn from, or does that case just mean the tool lists no option?
  • The old site had a Shop link in its navigation. Should listsome gain site level navigation links, or does the Tools page carry that job?
  • Should the planned project tool list in issue #79 reuse this model once it lands, or stay as plain links?

The build settled two earlier questions. Purchase options live in the affiliate list rather than the old single link field, and tool pages stay out of the Atom feed.

Notes Content Design

This page describes the Notes collection Listsome builds today. The decision record holds the decision behind it.

Goal

A maker says one thing about a build in one paragraph, and the site keeps that thing on a timeline with its own address. A note is the smallest post Listsome publishes. It’s dated, it usually has no title, and it often updates one project.

The IndieWeb note describes the shape. Their page calls a note short unstructured text that someone posts quickly, and it argues that a note is the building block under every other post type. It’s also the post type that POSSE grew around: you publish the note at your own address and syndicate a copy elsewhere.

The ephemera collection at yourpalryan.com is the working model. Its files carry a date, an optional photo, and the links where each copy landed. This format keeps that ceremony level and adds the one thing a project site needs and a personal site doesn’t: a note can name the project it updates.

What stays out

  • A description field. The first body paragraph is the listing text, so a description would make the author write the same sentence twice.
  • featured and hidden. No template reads hidden on a project today, and an author who sets it deserves better than a field that looks live and does nothing.
  • Posting anywhere. This format defines the frontmatter a syndication tool writes back, and no command posts yet. The [fediverse] table stays unread.
  • Micropub, so nothing can create a note over the network.
  • A merged feed. Notes and projects each get their own feed.

Content format

A note lives at notes/<slug>/index.md, beside the projects/ and tools/ directories. The date is the one field you must write:

---
date: 2026-11-08
project: bench-power-supply
---

The 3.3 V rail reads 3.18 V under a 2 A load, which is outside what the
datasheet promises. Rewiring the sense lines is next.

Listsome requires date and treats everything else as optional.

FieldWhat it does
dateOrders the collection, prints as the publication date, and heads the note when you write no title
slugReplaces the directory name in the URL
titleNames the note. Without it the site heads the note with its date
updated_atPrints as an update date and sets the feed entry’s modified date
projectNames the slug of the project this note updates
imageHolds a photo as src and optional alt
tagsFiles the note under a site-wide tag. Its page lists projects and notes
categoriesFiles the note under a site-wide category, same as tags
syndicationRecords where copies of this note went
authorReplaces the site author on this note
statusdraft holds the note back from the site

The body is ordinary CommonMark. Listsome renders it with the same options it uses for a project body, so callouts, tables, and image groups work here too. An unknown frontmatter key earns a warning that names the file and the key, and a key you carried over from a project or a tool file says where it came from.

A field you left blank is a field you never wrote. title: "" is someone clearing a template rather than a note named by an empty string, so Listsome prints no blank heading.

Listsome requires date instead of defaulting it to today, because a default from the clock makes the built site depend on the moment you ran the build. listsome new-note writes the date for you.

A photo

---
date: 2026-11-13
title: First clean test cut
image:
  src: ./assets/test-cut.jpg
  alt: The letters o and I carved cleanly into a poplar test block
---

You put the file in notes/<slug>/assets/. Listsome copies it beside the note page and runs it through the same resizing and WebP conversion that [build.images] configures for projects. A photo with no alt text gets the note’s heading, so the attribute never comes out empty.

Copies elsewhere

syndication:
  - href: https://mastodon.social/@me/115217350228279575
    title: Mastodon
  - href: https://bsky.app/profile/ryanparsley.bsky.social/post/3lyyt2u5is72p
    title: Bluesky

title names the platform, and it’s what the link prints. Leave it out and Listsome prints the host from the link’s own URL. Listsome records these links. It doesn’t check them, and it doesn’t post anything.

project names a project slug, not a directory and not a title. Listsome resolves the reference while it discovers notes, against the projects the same build found.

When the reference resolves, two pages change. The note page prints “An update on Bench Power Supply” and links to the project. The project page gains an Updates section that lists its notes, newest first.

When it doesn’t resolve, the build warns with the note’s slug and the project slug it looked for, then publishes the note with its text and no link. The file still records what you wrote, so the warning is worth reading rather than deleting.

A note never sends a webmention to its own site. Its links to other sites do join the manifest that listsome deploy sends from, the same way a project’s links do.

Generated pages

PathContents
/notes/The first page of published notes, newest first
/notes/page/<n>/Later pages of the same listing
/notes/<slug>/One note, its photo, and its project link
/notes.xmlAn Atom feed of every published note
<project>/Gains an Updates section when a note names it
/tags/<tag>/Projects and notes carrying the tag
/categories/<name>/Projects and notes filed under the category

A tag or category only notes use still gets a page. It didn’t at first, because listsome built taxonomy pages from projects alone, so the link on a note went nowhere. tests/example_site.rs now walks every tag and category link a note page prints and fails if the target page was never written, because nothing else in the build follows the links a site emits.

items_per_page splits /notes/ into pages the way it splits the home page. The build writes later pages under /notes/page/<n>/, and each page links back to the previous one and forward to the next. The Atom feed keeps every note whatever the page size, so a reader never loses entries to a listing split.

Tools keep their own /tools/tags/ namespace, which is a separate decision record’s choice. The site therefore answers “where do tags live” two ways: notes share the project taxonomy, and tools don’t.

A site with no notes/ directory builds the pages it built before. The Notes nav link and the /notes.xml head link appear only when the build found at least one note.

Markup

Listsome writes every generated property from frontmatter, so you never type a class name. The index page is an h-feed and every note is an h-entry.

A note permalink page carries:

ClassListsome emits it when
e-contentalways, around the body and its photo
dt-publishedalways
dt-updatedyou wrote updated_at
p-nameyou wrote title, and only then
u-url and u-uidalways, on the absolute permalink link
p-author h-cardalways
u-photoyou wrote image
p-categoryon each tag and category link
u-syndicationonce per syndication entry
u-relatedproject resolved to a real page

An untitled note gets no p-name on purpose. Microformats2 derives an implied name from the content, and a name Listsome invented from your first sentence is a worse copy of it.

The index shows an abbreviated entry. It uses p-summary rather than e-content, because a listing shows a digest, and the full content lives on the permalink.

Data flow

  1. discover_projects reads projects/<slug>/index.md.
  2. discover_notes reads notes/<slug>/index.md. It takes the project slugs the build found, resolves each project reference, and warns about the ones with no match.
  3. Each project page renders with the notes that name it.
  4. Each note page renders, with its assets/ copied and processed beside it.
  5. Listsome renders /notes/ when the collection has content, and it renders notes.xml beside it.
  6. Note links join the outbound webmention manifest.

src/note_intake/frontmatter.rs holds the field list and the warnings. src/note_intake/mod.rs holds the walk, the project resolution, and the sort.

Command-line surface

CommandWhat it does
listsome new-noteWrites notes/<today>/index.md with every other field present as a comment
listsome new-note <name>Writes it at notes/<name>/ instead
listsome new-note --title "..." --project <slug>Fills those two fields in
listsome list --notesLists notes by date, heading, and project
listsome build --draftsPublishes draft notes too
listsome checkValidates note files and counts their errors

The argument parser refuses --difficulty together with --notes, because a note doesn’t have a difficulty to filter by.

A draft note publishes with --drafts and shows a Draft badge. It stays out of notes.xml either way, because a feed is a promise to your readers, not a preview.

Testing

  • src/note_intake covers the parse, the required date, the empty-field rule, the sort, and project resolution against a list the test supplies.
  • src/model/note covers the heading a note gets with and without a title.
  • tests/example_site.rs check the markup on real built pages: h-entry, e-content, dt-published, the withheld p-name on an untitled note, u-photo on a note with a picture, u-related and the project’s Updates section, both feeds, and the warning for a dangling project reference.
  • examples/basic/notes/ holds three notes: a titled one about a project, an untitled one about a project, and one naming a project nobody wrote.

The example site’s notes are the smoke test for just serve-example.

Deferred questions

  • Should tool tags join the site-wide taxonomy, so one /tags/cnc/ page holds projects, notes, and tools? That asks whether a curated shopping list belongs beside a build log, which is a decision record rather than a cleanup.
  • Should one site be able to make the note feed the only feed, with projects as a category inside it?
  • Does a note need in-reply-to and like-of, the other two IndieWeb post types a maker might want in a build log? Or does a second kind of h-entry with different properties deserve its own decision record?
  • Do draft notes belong in a feed at all, once a private feed URL exists?

Site Configuration

A site reads its settings from listsome.toml in the site root. listsome init writes a working file with placeholders, and every command loads it from the directory you run from. The -C flag looks like an override and isn’t one, as the section at the end of this page explains.

This reference lists every field the parser reads, the default it falls back to, and what the field changes. This page marks the fields that Listsome accepts and then ignores, because a config that looks honored and does nothing is worse than one that says so. The section at the end collects every one of them.

A complete example

[site]
name = "My Project Site"
description = "Step-by-step guides for things I built"
author = "Ryan"
url = "https://projects.example.com"
language = "en"
about = "https://example.com/about"
email = "you@example.com"
source_repo = "https://codeberg.org/ryan/projects"
mastodon = "@ryan@mastodon.social"

[author]
name = "Ryan"
note = "I make things and write about them."

[[author.links]]
label = "Codeberg"
url = "https://codeberg.org/ryan"

[build]
output_dir = "./output"
drafts = false
items_per_page = 15

[build.images]
enabled = true
max_content_width = 1400
max_thumb_width = 700
convert_to_webp = false
webp_quality = 80.0
jpeg_quality = 100
palette = ["#1a1a2e", "#16213e", "#ff6b81", "#0f3460"]

[webmention]
enabled = true
endpoint = "https://webmention.io/projects.example.com/webmention"
approval = "auto_verified"

[affiliates]
disclosure = "Some links earn me a commission at no cost to you."

[affiliates.amazon]
tag = "yourtag-20"

[dev]
base_url = "http://localhost:8080"
port = 8080

[deploy]
host = "your-server.local"
user = "deploy"
path = "/var/www/site"
port = "3004"

[site]: site metadata

Three fields have no default, so the file fails to parse without them: name, description, and author.

FieldDefaultWhat Listsome does with it
namenone, requiredPrints it in the header, the tab title, and the feed title
descriptionnone, requiredPrints it under the site name and writes the feed subtitle
authornone, requiredWrites the feed byline and the footer copyright, and listsome new copies it into frontmatter
urlnoneSets the absolute base for links, the feed, and webmention targets
languageenWrites the lang attribute on the <html> element
aboutnoneWraps the author name in a link, which marks your h-card identity
emailnoneAdds an email to the feed
source_repononeReads it and keeps it in the model, and no template prints it

url deserves a setting of its own: without it, absolute URLs in the feed and the webmention manifest fall back to dev.base_url and then to http://localhost:8080. See how Listsome picks a base URL.

Social handles

Handles for the sharing link live directly under [site], not in a nested table:

[site]
mastodon = "@ryan@mastodon.social"
FieldDefaultWhat Listsome does with it
mastodonnoneBuilds the Share on Mastodon link on each project page
pixelfednoneReads it, keeps it in the model, and prints nothing
peertubenoneReads it, keeps it in the model, and prints nothing
blueskynoneReads it, keeps it in the model, and prints nothing

Only the Mastodon handle drives a template today. The other three need a share target before they earn their place, so a site that sets them sees no change.

[author]: the author profile

The [author] table publishes an h-card, the IndieWeb name for a profile that other sites can read. Listsome renders a compact card on the landing page and an expanded one at /about/ when the author supplies a long bio. A site with no [author] table keeps its current pages.

[author]
name = "Ryan Parsley"
photo = "/assets/avatar.jpg"
note = "I make things and write about how they went."
about = """
I build small tools and write about what I learn along the way.

You can reach me at [ryan@example.com](mailto:ryan@example.com).
"""
location = "Somewhere, USA"
pronouns = "he/him"
url = "https://example.com"

[[author.links]]
label = "Codeberg"
url = "https://codeberg.org/ryan"
FieldDefaultWhat Listsome does with it
namesite.authorPrints the author name in the h-card
photononeAdds a u-photo to the card
notenonePrints a short p-note on the landing page
aboutnoneRenders Markdown and writes /about/ when set
locationnonePrints a p-location
pronounsnonePrints a p-pronouns line
urlsite.urlSets the card’s u-url and u-uid
linksemptyAdds identity links, each rel=me unless it sets rel

Listsome doesn’t print an email address in either h-card. The site.email field still supplies the feed address.

Listsome turns a photo that starts with ./assets/ into a site absolute path. The author can also write a full URL. The footer keeps using site.author, so a different display name in [author] changes only the h-card.

An unknown key under [author] or under one of its links fails the build and names the key. That keeps a typo from looking like a setting that works.

[build]: build settings

FieldDefaultWhat Listsome does with it
output_dir./outputWrites the generated site here
draftsfalseIncludes status: draft projects in the build
items_per_page0Splits every listing into pages, 0 means one long page
default_project_imagebuilt-in crossed toolsImage shown on project cards with no hero
themedefaultReads it and ignores it, one theme ships
parallel_jobsCPU countReads it and ignores it, the build runs one project at a time
incrementaltrueReads it and ignores it, every build regenerates everything
base_urlnoneReads it and ignores it, production URLs come from site.url

Every project card gets an image so the grid stays aligned. A project’s hero wins. With no hero, Listsome uses default_project_image, and the built-in crossed hammer and wrench at /assets/default-project.svg is the last fallback. A site can supply its own file at that path to override the built-in image.

items_per_page needs a number greater than zero before any listing paginates. It splits the home page, the notes index, the tools index, the tool tag pages, and the site-wide tag and category pages. A listing writes its first page to its own index.html, then page/2/index.html and onward: the notes go to output/notes/page/2/index.html, and a tag page to output/tags/<tag>/page/2/index.html. A listing that fits on one page writes only its own index.html and prints no page links. The Atom feeds always carry every entry.

drafts also has a per-command override: listsome build --drafts and listsome serve --drafts publish drafts for that run without touching the file.

[build.images]: image processing

The build resizes and re-encodes images in each project’s assets/ directory.

FieldDefaultWhat Listsome does with it
enabledtrueTurns the whole image pass on or off
max_content_width1400Caps the width of images in a project body
max_thumb_width700Caps the width of listing thumbnails
convert_to_webpfalseWrites a WebP copy of each jpg and png file
webp_quality80.0Sets the WebP encoder quality
jpeg_quality100Sets the jpg encoder quality
paletteListsome colorsHex colors used by generated placeholder images

A project with no hero gets a generated 1200 by 400 pixel banner from these colors. The project slug seeds a ChaCha8Rng, and tiny-skia draws a mirrored grid, so the same slug always gets the same image and Listsome needs no JavaScript. Set [build] default_project_image to use one fixed image instead, and Listsome writes no generated images. A project’s own hero still wins over both.

Listsome treats a file as a thumbnail when its name carries thumbnail, and that’s the only case where max_thumb_width applies. Set enabled = false to copy assets as-is, which is what you want when a screenshot has to stay pixel-exact.

WebP output is off by default, so the roadmap line about WebP conversion describes a capability, not a default. Turn it on and check that your host serves the right media type.

[webmention]: webmention settings

A webmention is a notification that another site linked to one of your projects. Listsome receives them through a service such as webmention.io, stores them in a local cache, and renders the ones it approves. Sending happens on deploy.

FieldDefaultWhat Listsome does with it
enabledtrueLets listsome deploy send mentions for outbound links
endpointa placeholder URLSets the service it fetches from
approvalauto_verifiedDecides how much review an incoming mention needs
tokenemptyReads it and ignores it, fetch sends no authentication
notifyfalseReads it and ignores it, no email notification path exists

The endpoint that listsome init writes points at yourdomain.com. listsome webmention fetch refuses to use it, because webmention.io answers an unknown domain with an empty inbox and an empty inbox looks the same as a site with no mentions. Replace it with your own endpoint before you fetch.

Approval modes

listsome webmention fetch re-reads the page that mentioned you and records two facts: whether that page still links to your project, and whether the mention may appear on your site. approval decides how much of the first fact the command acts on.

ValueBehavior
auto_verifiedPublishes a mention once its source page confirms it, and holds the rest for a decision
manualHolds everything until you run listsome webmention approve
offPublishes every mention the moment it arrives, and skips verification

A fetch only ever grants approval. A source page that goes missing for a minute shouldn’t undo a decision you already made. Taking a mention down is your job:

RUST_LOG=info listsome webmention pending
listsome webmention approve https://blog.example/post
listsome webmention reject https://spam.example/post
RUST_LOG=info listsome webmention show my-project
listsome build

pending prints what waits for a decision, show prints every mention of one project with its state, and build renders the approved ones. reject remembers the decision, so the next fetch leaves that mention out instead of fetching it again, and approve on a rejected source reverses it. Both commands write .cache/webmentions.json, and the next build publishes the change.

Listsome adds an Amazon Associates tag to product links in tool entries. The site owner writes the tag once here, and each build applies it to tool files whose purchase-option url points at a known Amazon storefront. A URL that doesn’t qualify renders as written.

FieldDefaultWhat Listsome does with it
affiliates.disclosureA built in sentencePrints before the tool list and beside each affiliate link
affiliates.amazon.tagNoneSets the tag parameter on Amazon product links

An empty affiliates.amazon.tag fails the build and names the field. A key under [affiliates] that Listsome doesn’t recognize also fails, so a typo can’t look like a setting that works. With no [affiliates.amazon] table, the build leaves every product link alone.

A short link on amzn.to already carries its own destination, so Listsome leaves it as written and warns that Listsome can’t apply the configured tag. The tools design explains how a per tool override works.

[dev]: development settings

FieldDefaultWhat Listsome does with it
port8080Binds the dev server to this port
base_urlnoneAnswers as the base URL when site.url is unset

serve -p beats dev.port, and dev.base_url is only a fallback for builds: a production build wants site.url.

[deploy]: deployment settings

listsome deploy runs rsync over ssh, so it needs all three fields before it starts, and it names the one that’s missing:

FieldDefaultWhat Listsome does with it
hostnone, requiredrsync destination host
usernone, requiredrsync destination user
pathnone, requiredRemote directory that receives output/
portnonePrints a link to the deployed site, nothing more

[fediverse]: syndication settings

Listsome parses this table, and no code reads it. Syndication to the fediverse comes later than everything else on the roadmap, so the shape is here before the behavior:

[fediverse]
enabled = false
mastodon_instance = "https://mastodon.social"
mastodon_token = ""
auto_syndicate = false
default_hashtags = ["#DIY", "#makers"]

Setting enabled = true changes nothing yet. Don’t commit an API token here, either, since no code reads it.

How Listsome picks a base URL

Three places can supply one, and Listsome takes them in this order:

  1. --base-url on listsome build
  2. site.url
  3. dev.base_url
  4. http://localhost:8080

The base URL decides the link in the feed, the id of each feed entry, the source URLs in the webmention manifest, and every absolute link a template writes. A site that publishes without site.url writes a feed full of localhost links.

How Listsome picks an author

listsome new writes the frontmatter author from site.author, so a site that sets the site author gets correct bylines without work. If a project file has no author, the build falls back to Anonymous, and only listsome init reads $USER.

Fields and flags that do nothing yet

Six settings parse, then never reach a template, a command, or the build: build.theme, build.parallel_jobs, build.incremental, build.base_url, webmention.token, and webmention.notify, plus the whole [fediverse] table. Delete them from a config and the build output doesn’t change.

The argument parser reads four flags and drops them before any command runs: -C, -v, -q, and --color. listsome --help prints them, so they look real. Until someone wires them up, keep listsome.toml in the directory you run from and control output through RUST_LOG.

Troubleshooting

The failures people hit first, and what actually happened.

A command printed nothing

Most Listsome commands report through the log, and Listsome logs at the warn level by default. listsome list, listsome check, listsome deploy, and every listsome webmention subcommand print their results at the info level, so a quiet terminal means a quiet log rather than a failed command.

Raise the level for the run:

RUST_LOG=info listsome list
RUST_LOG=debug listsome build

RUST_LOG accepts the usual directives, so RUST_LOG=listsome=info narrows the change to this binary. The -v and -q flags in --help do nothing yet.

listsome serve looks hung

It’s not hung. The dev server binds and waits, and the line that prints its address sits at the info level. Run RUST_LOG=info listsome serve and the address appears, or pass --open and let the browser find it. The port comes from [dev] port, and -p beats the file.

cargo install listsome fails

The registry has no listsome crate, so cargo install listsome stops and says so. Install from the repository:

cargo install --git https://codeberg.org/RyanParsley/listsome

Release tags carry no prebuilt binaries. If the install instead fails while compiling with a message about edition 2024, the toolchain is too old, and rustup update fixes it. The crate needs Rust 1.96 or newer.

A project is missing from the site

Four things cause this, in the order worth checking.

  1. The directory holds no index.md. Listsome only treats a directory as a project when that file exists, and it skips the directory without a word.

  2. The file failed to parse. The build drops a project it can’t read at any log level, which is issue #84. Find it by checking the project directly:

    RUST_LOG=info listsome check cigar-box-controller
    

    A missing title or description is the usual cause, and a file with no frontmatter block at all reports the same way.

  3. The project is a draft. status: draft holds it out of the build until you ask for it with --drafts.

  4. The directory is in the wrong place. Projects live one level under projects/, so projects/foo/bar/index.md isn’t a project.

The build warns about a frontmatter key

The warning names the file and the key, and it means the build drops the key rather than stores it:

Unknown frontmatter key `draft` in projects/led-chaser/index.md is ignored.
Did you mean `status`?

draft: true doesn’t make a draft here, and the warning is the only thing telling you the project published anyway. Rename the key. If the key is one you invented for your own workflow, it belongs in a field Listsome reads or in a note inside the body.

listsome webmention fetch refuses to run

The endpoint in your config is still the one listsome init wrote:

https://webmention.io/yourdomain.com/webmention

webmention.io answers an unknown domain with an empty inbox, and an empty inbox looks exactly like a site that no one ever linked to, so the command refuses rather than lying to you. Register your domain at webmention.io, put its endpoint in [webmention] endpoint, and run the fetch again.

Webmentions didn’t appear on the page

Fetching and rendering are two steps. A fetch writes .cache/webmentions.json and nothing else. A build reads that cache and writes the approved mentions into the page, so a fetch needs a build after it.

Then check the moderation decision. With approval = "auto_verified", the default, a mention appears only after its source page still links to your project. Unverified mentions wait for you:

RUST_LOG=info listsome webmention pending
listsome webmention approve https://blog.example/post
listsome build

approval = "manual" holds everything until you approve it, and approval = "off" publishes whatever arrives. The cache remembers a rejection, so the next fetch leaves that mention out instead of putting it back.

The steps section looks wrong

The page renders your body in full and then repeats each step in a steps section, so the same text shows twice. In the second copy the parser flattens Markdown structure, which turns a bulleted list into one run-on paragraph, and the first step comes out empty when a non-step heading such as ## What You'll Need sits before it.

Issue #86 tracks both defects. Nothing to fix in your content: the body copy is the correct one, so write steps the way you want them read and treat the steps section as unreliable until someone fixes it.

A materials table stayed a plain table

Check the heading first. It must be exactly one of ## What You'll Need, ## Materials, or ## BOM, and the apostrophe in the first one is part of the match. ## What You Need, ## Parts, and ## Shopping List are ordinary headings over ordinary tables.

Then check the columns. A role takes the first column that answers to it:

RoleColumn headings
ItemItem, Part, Component, Name, Material
QtyQty, Quantity, Count, Amount
CostCost, Price, Unit Cost, Each
SourceSource, Link, Buy, Vendor, Supplier
NotesNotes, Description, Comment, Note

A table with no Item column names no parts, so no rows become bill entries and the table stays as written. A column that matches nothing keeps its contents.

The bill total looks wrong

Costs that aren’t numbers stay in the bill and out of the total, which is the right answer for Free, -, and 20–30. The parser refuses a figure with a decimal comma, the European 1.200,00, rather than guessing it, because guessing prices a $1200 part at $1.20. Rewrite it as 1200.00 or 1,200.00.

When the frontmatter cost and the bill disagree, the frontmatter wins and the build prints a warning naming both figures:

Cost $150.00 in the frontmatter of projects/mini-drone/index.md disagrees
with the bill of materials total $174.00; the frontmatter figure is the one
the site shows.

A guide that itemizes everything can leave cost out and let the bill answer.

The feed points at localhost

Absolute URLs come from three places, in this order: the --base-url flag, site.url, then dev.base_url, and finally http://localhost:8080. A site with no site.url publishes a feed of localhost links. Set url in [site].

build.base_url looks like the answer and isn’t: the parser reads it and no code looks at it.

Deploy failed

listsome deploy runs rsync over ssh, so it needs [deploy] host, user, and path, plus an output/ directory from a prior build. It names whichever of the three is missing. --dry-run prints the rsync command and sends nothing, which is the right first run on a new host:

listsome deploy --dry-run

The deploy also sends webmentions for the outbound links recorded at build time in output/.webmentions/outbound.json. A failure there shows up at the warn level, and the files you copied stay copied.

listsome new --git didn’t create a repository

It writes a .git/config file by hand rather than running git init, so the project directory looks like a repository and isn’t one. Run git init yourself, or leave the flag off and keep projects in the site repository, which is what the layout expects.

The site looks unstyled

The binary carries the built-in style sheet and injects it whenever a site has no assets/custom.css. Add that file at the site root, next to listsome.toml, and the build serves it instead of the built-in one. The replacement is total, so a custom.css that only sets a color loses every other rule.

Images are still large

Image processing is on by default and caps content images at 1400 pixels wide and thumbnails at 700. It resizes, and it doesn’t convert to WebP unless convert_to_webp = true. Files whose names contain thumbnail get the thumbnail width, and nothing else does. Set enabled = false to copy assets untouched.

Roadmap

Where the project stands

Listsome builds and publishes a do-it-yourself project site end to end: init, new, build, serve, check, list, deploy, and webmention moderation all do what their help text says. One maker runs their real site on it, and that maker is also the only person who has installed it from source.

It’s pre-1.0 in more than the version number. There is no installer, no prebuilt binary, no packaging for any platform, and no second machine has run the test suite. Treat every “planned” item below as a design sketch rather than a promise, and treat the Codeberg issue tracker as the plan of record: this page is a list of intentions.

Shipped

Left off the plan deliberately, because they work:

  • Image resizing and WebP conversion, configured through [build.images]
  • Category and tag index pages, generated in a stable order
  • Webmention fetch, verification, moderation, rendering, and sending on deploy
  • Callout boxes for warnings, tips, and notes, decided in decision record 0006
  • Bills of materials priced out of Markdown tables and marked up as h-product
  • Step bodies that keep their lists and links, extracted from the same parsed events as the rest of the page
  • Reports that print without setting RUST_LOG, from list and the webmention commands
  • A Tools collection whose affiliate links the build resolves, decided in decision record 0007
  • A Notes collection for short posts and project updates, whose h-entry markup the tests check, decided in decision record 0009

Short term

The items here close gaps a first-time user trips over.

  • A real install path. Publish to crates.io, or attach a binary to each release tag. Today the only route is cargo install --git, which needs a Rust toolchain and about a minute of compile time.
  • Open Graph metadata. The old site published social cards and Listsome publishes none. This is a small change to the default head template.
  • A 404 page. The old site had one and Listsome writes none, so a broken URL falls through to the host’s default page.
  • Configurable header links. Listsome hardcodes the header nav today. A site owner should be able to add a Shop link in listsome.toml, pointing at the Etsy shop or anywhere else. The Etsy link currently appears only among the author’s links.
  • A contact form and newsletter signup. The old site had a /contact form. Listsome has no contact route or form. Buttondown is a candidate for the newsletter side of this.
  • Breadcrumbs. A small navigation affordance the old theme supplied.
  • A warning about a note nobody meant to warn about. A note about a draft project loses its link in a build that excludes drafts, and the build says so every time. Decision record 0009 records the edge. Telling a draft slug from a missing one costs a second walk of projects/.
  • A project that vanishes. Listsome drops a file it can’t parse without a word, so a build reports success and the author sees a gap. Issue #84.
  • Syntax highlighting. Code blocks with syntect. The dependency is already in Cargo.lock and nothing calls it.
  • Full-text search. The old site searched from the browser. A Listsome index should build with the site and stay static, with no external service.
  • AV1 image output beside the WebP conversion that already runs.
  • Honest config. Six settings parse and do nothing, and the argument parser drops four flags before any command runs. Wire them up or remove them: build.theme, build.parallel_jobs, build.incremental, build.base_url, webmention.token, webmention.notify, -C, -v, -q, and --color.

Longer term

None of this has a design document yet.

  • Syndication for notes. Decision record 0009 defines the syndication frontmatter a posting command writes back, and no command posts anywhere yet.
  • One taxonomy across every kind of content. Project tags and note tags share /tags/ now, and tool tags still live under /tools/tags/ because decision record 0007 put them there. Merging them asks whether a curated shopping list belongs on the same page as a build log.
  • Internal link checking. A note once printed links to tag pages the build never wrote, and nothing noticed. One test now walks the taxonomy links a note emits, and nothing walks any other link.
  • Syndication to Mastodon, Pixelfed, and PeerTube from the command-line tool. The [fediverse] config table waits for it.
  • Related content. The old site showed related posts. Listsome has no links among projects or notes, and the data shape needs a decision.
  • A table of contents for long project pages. Whether one earns its place is still undecided.
  • Analytics. The old site loaded analytics and ads. Listsome ships neither, and no choice has landed on a privacy-respecting replacement.
  • A print style sheet for generated sites.
  • Importers for Instructables, Hackaday, and similar platforms.
  • Video transcoding and thumbnail generation.
  • Multi-language sites.
  • A plugin system for third-party generators and themes.
  • Inline 3D model viewing for .step and .stl files.
  • A second maker running a real site on it, which is the test that decides whether any of this matters.

Not planned

  • Read time. The old site displayed an estimate. Listsome leaves it out.
  • Share buttons for every network. A Mastodon share link is enough for now.

Design status

  • IndieWeb. Microformats2 markup ships in the default templates. Listsome fetches, verifies, moderates, and renders webmentions, and it sends them on deploy. A fetch still happens when you ask for it rather than when the cache goes stale, and it needs an endpoint you configured yourself.
  • Fediverse syndication. A config model exists in listsome.toml, and no code reads it. Notes carry the syndication frontmatter that a posting command would write back.
  • Microformat coverage. Decision record 0002 records that nothing tested microformat correctness in generated output. tests/example_site.rs checks the markup on notes pages and on the tag and category pages notes contribute to, and nothing checks projects, tools, or bills of materials.
  • Comments and reactions. Research covered webmentions, email replies, and Giscus. No choice has landed yet.
  • Content conventions. Decision record 0004 specifies more than the parser reads. Issue #73 holds the audit and the order of attack, and its slices cover tool lists, download metadata, and step details.

Contributors

Listsome is one crate and one binary, with no runtime and no database. This page covers the layout of the code, the commands that keep it honest, and what a change needs before it’s worth a review.

How a build works

projects/*/index.md   frontmatter and Markdown
        |
        v
  project_intake      splits frontmatter, parses Markdown, extracts structure
        |
        v
  model               Project, ProjectMetadata, Step, MaterialItem
        |
        v
  render              MiniJinja context built from the model
        |
        v
  generator           writes output/, images, taxonomies, feed, manifest
        |
        v
  output/             static HTML, any host takes it from here

listsome build walks the pipeline in that order, and each stage takes its input from the stage before it rather than from the filesystem.

Modules

PathResponsibility
src/main.rsEntry point, log filter setup, error exit code
src/cli.rsArgument parsing with clap, command dispatch
src/commands.rsCommand implementations, the only place that wires stages together
src/config.rsConfig loading, defaults for a new site, saving
src/error.rsListsomeError and the crate’s result alias
src/model/Project, ProjectMetadata, Step, MaterialItem, SiteConfig
src/project_intake/Frontmatter parsing, Markdown to HTML, steps, callouts, materials tables
src/project_intake/materials.rsColumn matching and h-product markup for bills of materials
src/render/mod.rsTemplate contexts and content enhancement
src/generator/Site writing: discovery, assets, taxonomy, feed, renderer
src/images.rsResizing and encoding
src/webmention/Fetch, verify, storage, send, shared HTTP client
src/server/Dev server, file watch, WebSocket reload
src/templates/Built-in MiniJinja templates
src/assets/Built-in style sheet and the lightbox script

src/project_intake is the parser. Nothing named src/parser exists, whatever older notes say.

Data flow

  1. A command loads listsome.toml through config::find_and_load_config.
  2. generator::discovery walks projects/ two levels deep and reads every directory that holds an index.md.
  3. project_intake::parse_project splits frontmatter, renders the body, and pulls out steps, callouts, and materials tables. A file that fails to parse build drops it rather than reports it.
  4. render builds a context per project and hands it to a MiniJinja template.
  5. generator::assets copies each project’s assets/ directory and re-encodes images on the way through.
  6. generator writes the index pages, the category and tag pages, the Atom feed, and output/.webmentions/outbound.json.

Design rules

The checks enforce these rules rather than suggest them.

  • No unwrap, no expect, no panic outside tests. clippy.toml allows them in test code, and src/main.rs denies clippy::unwrap_used, clippy::expect_used, and clippy::panic at the crate root for everything else.
  • Errors carry their context. ListsomeError attaches the path, template, or pattern that failed, and keeps the underlying error as its #[source], so a message names a file rather than a syscall and a cause stays reachable.
  • Pure parsing, shell commands. project_intake and render take data and return data. Filesystem and network work lives in commands.rs and generator/.
  • One HTTP abstraction. webmention::http::HttpClient has a real implementation and a mock, so tests never reach the network.
  • No silent drops. A build that skips a project or a config key says so. One exception is still open: #84, a project that fails to parse.

Commands

just is the front door.

CommandWhat it does
just buildRelease build
just installRelease build, then copy to ~/.cargo/bin
just testTest suite
just checkType check, no code generation
just clippyLints with --all-targets and -D warnings
just docs-lintVale and rumdl over docs/ and the README, then the mdBook build
just serve-exampleRelease build, then serve the example site on port 8080
just watchRebuild on change

cargo clippy without --all-targets skips test code, which is why the pre-commit hook isn’t the gate that matters. Run just clippy before you call a change done.

Tests

cargo test runs the unit modules inside src/ plus one integration suite:

  • tests/example_site.rs builds examples/basic with the compiled binary and snapshots the index page, one project page, and the category index. When a change shouldn’t alter output, the snapshot diff has to be additive only:

    git diff --unified=0 tests/snapshots | grep '^-[^-]'
    

    Empty output means the diff removed nothing.

rss.xml stays out of snapshots on purpose. Its updated field is the clock, so a byte-exact comparison would fail on the next Tuesday.

Documentation

docs/ is an mdBook, and book/ is its build output. Three tools hold the line, and just docs-lint runs all of them:

  • mdBook builds the site that .woodpecker/docs.yml publishes to Codeberg Pages. Broken internal links show up there.
  • Vale checks prose against the Google rules vendored in .vale/Google plus the project rules in .vale/styles/listsome. MinAlertLevel = suggestion, so every alert it prints is a failure.
  • rumdl checks Markdown structure with an 80-column prose limit. Tables and code blocks are exempt, and paragraphs aren’t.

Prose rules worth knowing before you write: no em dashes, no parentheses in prose or tables, active voice with a named actor, contractions, and no first-person plural. Vale wants most acronyms spelled out, and a spelling out needs parentheses, so this documentation avoids the acronyms instead.

Continuous integration

Woodpecker runs four pipelines from .woodpecker/:

  • ci.yml checks formatting, lints with --all-targets, runs tests, builds docs, and does a release build on pushes and pull requests.
  • release-pr.yml opens a release pull request when Cargo.toml bumps.
  • release.yml builds the binary and creates the tag and release.
  • docs.yml builds the book and publishes it to Codeberg Pages.

Everything runs on rust:1.96, the same toolchain the crate requires.

Making a change

Never commit on main. Work in a sibling worktree:

git fetch origin
git worktree add ../listsome-feature-name -b feature/name origin/main
cd ../listsome-feature-name

Commit with conventional commit messages. cog verify runs in the commit-msg hook and rejects anything it can’t parse into the changelog:

git add .
git commit -m "feat(content): price a materials table as a bill of materials"

Before you push, rebase, then run the gates:

git fetch origin main
git rebase origin/main
just clippy && just test && just docs-lint
just build && just serve-example

origin is Codeberg. fj is the forge command-line tool, and its subcommands are search rather than list:

fj pr search
fj issue search --state open
fj pr create "Title" --body-file body.md

Feed long bodies from a file. fj pr create --body and fj issue edit replace the whole body, and text inside a double-quoted shell string gets its backticks executed.

Decisions

Anything that changes architecture earns a record in docs/adr/ before the code lands. The records follow Michael Nygard’s format, and the newest one is the last file in the directory. A record is a snapshot of a decision, so later work adds a new record rather than editing an old one. When a record stops matching the code, say so in its status section: stale prose about a live system is worse than no prose.

1. Record architecture decisions

Date: 2026-05-30

Status

Accepted

Context

Listsome needs to record the architectural decisions made on this project.

Decision

Listsome uses Architecture Decision Records, as described by Michael Nygard in his article “Documenting Architecture Decisions.”

Consequences

Each record keeps the context, the decision, and the consequences in one file, so a reader can find why the code does a thing without asking the person who decided it. Each record keeps the number it got, which keeps references in commits and issues stable.

Nygard’s article, named in the decision section, explains the format. For a lightweight tool for creating records, see Nat Pryce’s adr-tools.

2. IndieWeb microformats implementation

Date: 2026-05-30

Status

Accepted. Several claims in the decision section describe work that never landed, and one feature listed as unimplemented now is. Read the decision as the plan it was on 2026-05-30, then read Corrections for what the templates emit today.

Context

Listsome generates static HTML sites for DIY project documentation. To support the IndieWeb philosophy of owning your content and connecting through open standards, the generated HTML should include semantic markup that machines can parse.

The goal is to make every Listsome site a first-class citizen of the IndieWeb without requiring users to learn or write microformats themselves.

Decision

Listsome generates standard microformats2 markup automatically from the project data model. The user writes CommonMark with frontmatter, and Listsome adds the semantic classes.

The built-in templates implement these microformats:

  • h-feed on the project index page
  • h-entry on each project detail page, with p-name, p-summary, dt-published, p-author h-card, p-category, p-difficulty, p-cost, and p-time
  • h-card for the site author, with name, URL, and email
  • h-product for materials and bill-of-materials items, with p-name, p-quantity, p-price, and p-URL
  • h-event for project steps with duration
  • a rel=webmention link for endpoint discovery in the HTML head
  • a rel=micropub endpoint in the HTML head
  • a rel=authorization_endpoint link for IndieAuth
  • rel=me on the fediverse profile URL, for identity verification

The command-line tool stubs these IndieWeb features rather than finishing them:

  • listsome webmention fetch, which fetches and displays webmentions
  • listsome webmention show, which shows mentions for a project
  • listsome webmention test, which tests an endpoint

The generated Atom feed includes webmention links, and the markup declares WebSub hub support.

Consequences

Positive:

  • Users get IndieWeb-compatible sites without extra work
  • Microformats live in the template layer rather than the content layer
  • Swapping templates keeps the semantics
  • No microformats feature needs JavaScript

Neutral:

  • Template overrides must preserve microformat classes or lose IndieWeb compatibility
  • Fediverse config exists in listsome.toml and has no implementation

Negative:

  • The webmention command-line tool remains stubbed, so users must reach for external tools such as webmention.io
  • Documentation describes fediverse syndication that no code implements
  • Nothing tests microformat correctness in the generated output

Corrections

Written 2026-11-13, against 0.1.7.

Landed as decided:

  • h-feed, h-entry, h-card, and the property classes listed in the decision all ship in base.html, index.html, project.html, tag.html, and category.html.
  • p-name, p-quantity, p-price, and p-url on bill-of-materials rows come from the materials parser rather than a template, because the bill replaces the author’s table in the rendered body. The project header carries p-cost, p-time, and p-difficulty.
  • Listsome implements the three webmention commands this record listed as stubbed, along with pending, approve, and reject. It fetches mentions, verifies each against its source page, moderates from the cache, and renders what survives.
  • Every project page head carries a rel=webmention link.

Not as decided:

  • No template carries a rel=micropub link, and no code implements a Micropub endpoint.
  • No rel=me link exists, so nothing advertises the fediverse handle as an identity link.
  • The Atom feed declares no WebSub hub and carries no webmention links.
  • Steps carry the h-event class and print a duration when the model has one, and no step has a duration yet: the parser leaves the field empty. See issue #76.
  • Nothing tests microformat correctness in the generated output. The example site snapshots show the classes, and no assertion checks them.

One defect worth naming. project.html writes this link:

<link rel="webmention" href="/webmention">

The template hardcodes the path, so a static host serves nothing at /webmention and endpoint discovery advertises a dead receiver rather than the service configured in [webmention] endpoint. Sending works because the sender discovers endpoints itself, and receiving works because a human registers the domain with a third-party receiver. A site that wants discovery to mean something needs the template to read the configured endpoint.

3. Markup dialect

Date: 2026-05-30

Status

Accepted. The dialect hasn’t changed. One consequence listed as negative, the absence of a callout syntax, no longer holds: decision record 0006 added one that stays inside standard CommonMark. See Corrections.

Context

Listsome needs a markup language for project content. Users write content in plain text files that a build converts to HTML. The choice of markup dialect affects portability, feature richness, and the learning curve for users.

Options considered include CommonMark, GitHub-Flavored Markdown, AsciiDoc, reStructuredText, and a custom markup language.

Decision

Listsome uses CommonMark as its base markup dialect, processed by pulldown-cmark.

The parser turns on three CommonMark extensions:

  • Tables, through ENABLE_TABLES, which bills of materials depend on
  • Strikethrough, through ENABLE_STRIKETHROUGH, for deprecated or removed items
  • Task lists, through ENABLE_TASKLISTS, for checkboxes in project notes

Every mainstream Markdown renderer supports these three, so the extensions don’t cost portability.

Why not GitHub-Flavored Markdown

GitHub-Flavored Markdown extends CommonMark with tables, strikethrough, task lists, autolinks, and disallowed raw HTML. pulldown-cmark implements the table, strikethrough, and tasklist extensions as opt-in flags rather than bundling one mode that turns all of them on. Listsome enables the three it needs and leaves autolinks and raw-HTML stripping out, because neither adds anything a project guide needs.

Why not AsciiDoc or reStructuredText

CommonMark has wider tooling support, lower learning overhead, and better ecosystem compatibility. AsciiDoc and reStructuredText do more for long-form technical documentation and add complexity that a page about wiring a relay doesn’t need.

Why not a custom markup language

Custom syntax would lock content into Listsome. A maker should be able to open a project file in any Markdown editor, read it on a forge that never heard of Listsome, and move to another generator without rewriting.

Consequences

Positive:

  • Users write standard Markdown, so there is no proprietary syntax to learn
  • Files render correctly in any CommonMark-compatible viewer
  • Editing tools, previews, and linters already understand the dialect
  • pulldown-cmark is fast and well-audited

Neutral:

  • Listsome leaves autolinks and raw-HTML stripping out on purpose
  • Tables, strikethrough, and task lists depend on pulldown-cmark extensions rather than the core specification

Negative:

  • Raw HTML in project files passes through, which allows markup inconsistency when an author overuses it
  • No built-in math rendering or diagram syntax

Corrections

Written 2026-11-13, against 0.1.7.

  • Listsome does have a callout convention now. A paragraph that opens with a bold label or a leading emoji becomes an <aside> box, and a renderer that knows nothing about Listsome shows the same sentence as a paragraph with bold text. Decision record 0006 records the syntax and why it stays inside CommonMark.
  • Listsome adds structure to three conventions rather than none: step headers, materials tables, and callouts. All three degrade to standard Markdown when another renderer handles them.
  • The enabled-extension list is accurate. render_markdown_to_html turns on tables, strikethrough, and task lists and nothing else.

4. Content convention parsing

Date: 2026-05-30

Status

Accepted. Parts of this record were a specification written ahead of the parser, and no one has built some of those parts. Read the decision as the target, then read Corrections for the parser that exists in 0.1.7. Issue #73 tracks the distance between the two.

Context

Listsome extracts structured data such as steps, bills of materials, tool lists, and asset references from CommonMark project files without requiring users to learn a custom markup language. The parser needs to recognize patterns in standard Markdown and map them to the internal data model of Step, MaterialItem, and Tool.

Decision

Listsome uses a convention-over-configuration approach: the parser recognizes specific level-two headings and table structures in CommonMark content and extracts structured data from them. The approach takes its model from Cooklang, where you write plain text and get structured features through convention.

Step extraction

The parser extracts headings matching one of these patterns as numbered steps:

  • ## Step N: Title
  • ## Part N: Title
  • ## Phase N: Title

Content between consecutive step headings becomes that step’s body.

Bill-of-materials table parsing

The parser reads any table under a recognized materials heading as a bill of materials and compares column names with known aliases, ignoring case:

RoleRecognized column names
ItemItem, Part, Component, Name, Material
QtyQty, Quantity, Count, Amount
CostCost, Price, Unit Cost, Each
SourceSource, Link, Buy, Vendor, Supplier
NotesNotes, Description, Comment, Note

Each role takes its first match. Summing the Cost column gives the total.

Tool list extraction

Both bulleted and numbered lists under ## Tools, ## Equipment, or ## Required Tools become tool entries, and the parser keeps the links those items carry.

Download enrichment

Links under ## Downloads, ## Files, or ## Assets gain file metadata such as size and an icon for the extension, and the build checks internal links to ./assets/ against the filesystem.

Section heading recognition

The full set of recognized headings and their mapping:

HeadingsParsed as
What You'll Need, Materials, BOMBill of materials
Tools, Equipment, Required ToolsTool list
Step N:, Part N:, Phase N:Steps
Downloads, Files, AssetsDownloads list
Troubleshooting, FAQ, Common IssuesCollapsible sections
Variations, Alternatives, OptionsVariation cards

Asset conventions

Assets live in projects/<slug>/assets/, and a project refers to them by relative path, for example ./assets/hero.jpg. Three name conventions apply:

  • hero.jpg for the main project image in listings
  • thumbnail.jpg as an optional override for the listing thumbnail
  • step-*.jpg for step images, matched to the step number

Callout detection

A marker at the start of a paragraph becomes a styled callout box. The vocabulary is warning, caution, hot, tip, pro tip, note.

When [affiliates] appears in listsome.toml, the build adds affiliate tag parameters to links to known vendors such as Amazon, Adafruit, and AliExpress. A URL pattern decides the vendor, matched against a built-in list of affiliate-enabled domains.

Build-time pipeline

The parsing and rendering pipeline processes each project as follows:

  1. Load index.md, extract frontmatter, and render the body.
  2. Walk the event stream and detect headings for section recognition.
  3. Parse bill-of-materials tables: match column headings and extract rows as MaterialItem values.
  4. Extract steps: collect content between step headings into Step values.
  5. Identify tools, downloads, variations, and callouts.
  6. Resolve asset references: validate file existence and compute sizes.
  7. Apply affiliate enrichment: rewrite vendor links with configured tags.

Consequences

Positive:

  • Users write standard CommonMark with no custom syntax
  • The conventions are discoverable, because they mirror how people already write project guides
  • The parser produces structured data without separate forms or config files

Neutral:

  • Conventions depend on specific heading wording, so the parser ignores non-English headings
  • Custom templates must match the same section patterns to benefit from structured data

Negative:

  • Column matching is a guess, so an unusual column name finds no role
  • Heading recognition is English-only
  • Nothing validates that extracted data means what it says, so a table that isn’t a bill of materials but sits under a materials heading becomes one

Corrections

Written 2026-11-13, against 0.1.7.

Built as specified:

  • Step extraction recognizes Step, Part, and Phase headings and takes the body from the content between headings. Two details differ from this record. The build numbers steps in document order and ignores the number you type, so a guide that jumps from Step 2 to Step 4 shows two steps numbered 1 and 2. And the parser rebuilds that body from text nodes, so Markdown structure doesn’t survive it. Issue #86 holds both defects.
  • Bill-of-materials parsing matches the alias table, first match per role, and sums the Cost column into a total that keeps the column’s own notation. Rows that name a part carry h-product markup. The build shows a cost cell that isn’t a number and leaves it out of the total, and it refuses a figure with a decimal comma rather than guessing it.
  • Three headings qualify: What You'll Need, Materials, and BOM, each compared on the whole heading. The parser matches none of Required Tools and its peers in the recognition table.
  • Callout detection exists, and decision record 0006 supersedes the description here. A marker is a bold label or a leading emoji that opens a paragraph, not an “emoji plus colon” pattern.

Not built:

  • Tool list extraction. A ## Tools heading renders as a heading. Issue #79 holds it.
  • Download enrichment. Links under a ## Downloads heading get no size, no type, and no filesystem validation. Issue #80 holds it.
  • Collapsible troubleshooting sections and variation cards.
  • Affiliate link enrichment. No [affiliates] section exists in the configuration model, so nothing reads vendor domains.
  • Asset name conventions beyond one case: the build resizes a file whose name contains thumbnail to the thumbnail width. Nothing matches step-*.jpg to a step, and the hero image comes from the hero frontmatter field rather than a file named hero.jpg.
  • Pipeline steps 5, 6, and 7. The build validates no asset path and computes no file size.

Two consequences also landed differently than written. A table under a materials heading whose columns match no role stays the plain table the author wrote, rather than becoming an empty bill. And a cost in the frontmatter wins over a bill total, with a build warning naming both figures when they disagree, because the index, the header, and the feed all show the frontmatter number.

5. Webmention storage-centric architecture

Date: 2026-10-23

Status

Accepted. Implemented: phases 1 through 3 landed in PR #60, phase 4 in PR #61, and the moderation workflow from issue #52 landed with the pending, approve, and reject subcommands. See Corrections for two names that changed after the decision landed.

Context

Two webmention implementations existed at once after PR #33 merged.

Live-API, PR #33, on main: listsome build called webmention.io over HTTP while rendering a project page, and wrote per-project output/webmentions/<slug>.json files. The Webmention shape was the API’s own: a nested author object, a wm_property string, and a content object.

Storage-centric, unmerged branches behind PRs #55 through #58: a local .cache/webmentions.json store with verified and approved flags, a flat Webmention shape with author: Option<String> and mention_type: String, and async Fetcher and Sender types behind an HttpClient trait that tests could swap.

The two designs didn’t fit together. src/templates/project.html on main read mention.author.name, and the display branch handed templates mention.author as a string. A build on main also needed the network: an unreachable webmention.io meant an incomplete site, and builds weren’t reproducible.

Decision

Storage is the source of truth for rendering. listsome build reads .cache/webmentions.json and performs no network input or output, and fetching and sending are explicit commands.

  • One model. A single Webmention with a nested Author lives in src/model/site.rs. The fetcher deserializes the jf2 wire format into private Jf2 types in src/webmention/fetcher.rs and converts them through into_webmention(), so the API shape never reaches templates or storage.
  • One HTTP abstraction. src/webmention/http.rs defines HttpResponse, which carries a status, a body, and every header value, because a target may send several Link headers. It also defines an HttpClient trait with get and post. ReqwestClient implements it, and tests implement it with a mock. Fetch and send both build on it.
  • One send path. src/webmention::sender::Sender discovers the endpoint through parse_link_header and find_webmention_link, the same webmention.rocks-compliant functions used elsewhere, and sends the source and target pair. That change deleted the blocking WebmentionClient along with the blocking feature of reqwest.
  • Moderation. Storage keeps every mention, and rendering shows only the ones where approved is true. A fetch verifies each mention against its source page and approves it according to the approval setting. listsome webmention approve, reject, and pending are the human’s tools, and the cache remembers a rejection, so the next fetch doesn’t resurrect the mention.
  • The build records outbound links. The generator writes an outbound-link manifest from generated HTML through extract_outbound_links, and listsome deploy sends from it and tracks delivered pairs in a ledger so redeploys skip them. Markdown-time link discovery lost, because it would have been a second source of truth.

Disposition of the unmerged branches

PRContentOutcome
#55 fetchasync fetcher, flat module layoutsuperseded by 7123ca9 and 4e112af, and the branch kept the pre-unification author: Option<String> model
#56 displaystorage module, template renderingsuperseded by dae50e9 and 1702746, and its WebmentionContext adapter is unnecessary now that model and template agree
#57 sendSender, HttpClient::post, response headerssalvaged into #61, and #61 dropped its duplicate discovery parsers, dead-code-marked link discovery, and suppression attributes
#58 webmentionsdiscovery, manifest, ledger, deploy sendingalready upstream, all five commits are on main from 396191b to 3a6a262

The project closed all four rather than merging them: reconciling them on main first, then merging, would have reverted the unified model and the CI work.

Consequences

Gained: deterministic offline builds, one data model to change, listsome webmention fetch refreshing on demand, an async send path whose failures are per target rather than a deploy that aborts, and both directions testable without a network, which is why the wiremock-dependent blocking tests give way to mock-client tests.

Cost: a two-step workflow rather than one command, so a stale cache renders stale mentions and an automatic or staleness-triggered fetch remains open. read_project_webmentions() used to read the per-project files under output/webmentions/, and nothing wrote them, so a site that relied on that path saw old data until it fetched into the cache. approved is under user control, and a fetch never withdraws an approval, so a mention whose link disappears stays on the site until someone runs listsome webmention show and rejects it.

Corrections

Written 2026-11-13, against 0.1.7.

Two details in the decision moved:

  • The manifest is output/.webmentions/outbound.json, not output/.webmentions/manifest.json. The ledger of pairs already sent is .webmentions/sent.json in the site root rather than beside the manifest.
  • read_project_webmentions() no longer exists, so nothing reads the stale per-project files under output/webmentions/. The cache is the only input to rendering.

The open items are still open. Nothing fetches on a schedule or when the cache goes stale, so refreshing mentions means running listsome webmention fetch and then listsome build. That fetch needs an endpoint you configured, and it refuses the placeholder endpoint listsome init writes. Fetch also sends no authentication, so [webmention] token in the config does nothing today.

6. Callout marker syntax

Date: 2026-11-04

Status

Accepted. Implemented in the change that closed issue #77: wrap_callouts in src/project_intake/mod.rs, applied to project bodies and step bodies, with .callout styles in src/assets/listsome.css. The step-body case isn’t working yet, and the last entry under Negative explains why.

Context

docs/recipe-design.md told authors that a paragraph opening with **Warning:** Turn off power at the breaker renders as a styled callout box. Decision record 0004 described the same feature as bold text that starts with a recognized emoji and colon at the start of a paragraph. Those are two different syntaxes, and neither existed. The recognizer didn’t exist, so both documents described a feature listsome didn’t have, and issue #73 opened against the gap.

The constraint that matters is the one decision records 0003 and 0004 both insist on: content is standard CommonMark and renders acceptably wherever Markdown renders. A callout convention must therefore degrade to something a plain Markdown renderer still shows correctly, and it must never reinterpret text the author didn’t mark. A maker writing a bill of materials shouldn’t have their prose about “note the orientation of the pin” turn into a box, and a project viewed on a forge with no listsome style sheet should still read as a project.

Decision record 0004 and the format reference already fix the vocabulary: warning, caution, hot, tip, pro tip, note.

Decision

A callout is a paragraph whose first inline content carries a marker. Two the recognizer accepts two, and a callout needs at least one:

  1. A bold label, as in **Warning:** body and **Pro tip:** body, where the colon sits inside the emphasis. This is the form docs/recipe-design.md already documented, so it stays canonical.
  2. A leading emoji, as in ⚠️ body, and ⚠️ **Warning:** body where both appear. This is the form decision record 0004 described. With an emoji and no label the kind comes from the emoji, and with both the label wins and decides the title.

Warning: body with no bold and no emoji isn’t a callout. Unmarked prose keeps the shape the author gave it, which is the difference between a convention and a guess.

MarkerKindRendered title
**Warning:**callout-warningthe author’s label, as written
**Caution:**, **Hot:**callout-warningas written
**Tip:**, **Pro tip:**callout-tipas written
**Note:**callout-noteas written
⚠️, 🔥callout-warningWarning or Hot
💡callout-tipTip
📝, ℹ️callout-noteNote

Output structure, produced at build time with no JavaScript:

<aside class="callout callout-warning">
  <p class="callout-title">Warning</p>
  <p>Turn off power at the breaker.</p>
</aside>

<aside> because a callout is content parenthetical to the flow it sits in, and because it keeps the paragraph inside it intact for anything that parses the page as HTML. The label becomes a <p class="callout-title"> rather than an aria-label, so the box is still identifiable in a text selection, on a printed page, or in a feed reader that strips classes.

A label that fills the whole paragraph still produces the box, with no empty body paragraph.

Consequences

Positive:

  • Both documented syntaxes work, so whatever an author copied from the reference renders as promised, and both are a shape the author has to write deliberately.
  • Unmarked paragraphs are never rewritten, which keeps the recognizer honest and removes the false-positive class that decision record 0004 listed under its own Negative.
  • In a renderer without listsome’s style sheet the callout is still a legible <aside> with a visible title line: convention, not custom syntax.
  • One pass over the event stream covers project bodies and step bodies, because render_markdown_to_html renders both.

Neutral:

  • The recognized vocabulary is English-only, as decision record 0004 already conceded. The label table is one constant in project_intake, so a localized build can extend it without touching the recognizer.
  • The recognizer compares emoji by character code, so a variation selector or a text-presentation variant changes nothing that matters. An author who types emoji from a picker gets the expected result, and a hand-typed code point may not.

Negative:

  • A bold label that opens a paragraph becomes a box whether or not the author meant it as one. **Availability:** In stock is safe because availability isn’t in the table, but a future label word added to the table changes how existing content renders. The list is therefore deliberately short, and growing it’s a decision-record question rather than a convenience.
  • The pass runs over the event stream, so a callout marker inside a code block or a table cell stays untouched. That’s correct behavior, and it means the same text can be a box in prose and plain text in a code sample.
  • A callout inside a step body doesn’t render yet, for two reasons. extract_steps leaves in_step_header set whenever a non-step heading precedes the first step heading, and that’s the layout docs/recipe-design.md documents, with ## What You'll Need first. Every step in such a project therefore gets an empty body. And because the body is rebuilt from text events, Markdown structure such as bold, links, images, and inline code can’t survive it even once someone fixes the first defect. Issue #86 holds both, and it’s a prerequisite for the step case this decision assumes. Body text outside a step heading keeps its callouts, so a warning paragraph in a project’s introduction renders today.

Corrections: step bodies

The fix for issue #86 landed. extract_steps keeps each step’s body, and Listsome renders that body through the same event pass as the rest of the page. Markdown structure survives, and a materials heading before the first step no longer empties that step. A callout inside a step body now renders as a box. The example project’s snapshot and the step-body tests in src/project_intake/ hold the behavior in place.

7. Tools content

Date: 2026-11-21

Status

Accepted. Implemented in the change that adds the Tools collection, with the tests in tests/example_site.rs and the example tool files under examples/basic/tools. The tools design carries the format and the link rules.

Context

The old site at yourpalryan.com curated a Tools collection. It had an index page and one page per tool, each with a brand, a short review, a direct purchase link, and an updated date. Each old file held only a title and a link, with the brand as a level two heading in the body, and each entry carried its own affiliate link. Changing the identifier meant editing every file.

Listsome currently discovers and renders one kind of content. discover_projects walks projects/<slug>/index.md, and the generator writes project pages, an index, feeds, and taxonomy pages from that one list. There is no tools/ directory and no /tools page.

Decision record 0004 specified two things relevant to this proposal. Its tool list extraction turns list items under a ## Tools heading into a checklist inside a project page. Issue #79 holds that work, and it’s a different feature from a collection of tool pages. Its affiliate enrichment section described rewriting vendor links with configured tags. Issue #73 cut that feature, and decision record 0004’s Corrections say the build doesn’t include it. This proposal brings the idea back in a narrower place.

Decision

Listsome gains a second kind of content, Tool, alongside Project.

  • A tool lives in tools/<slug>/index.md. Required frontmatter is title and product_url. Optional frontmatter is slug, brand, description, affiliate, and updated_at. With no description, the listing uses the first paragraph of the body. The body is standard CommonMark.
  • The site owner configures one affiliate identifier per platform in listsome.toml, under [affiliates.amazon] with a tag field. A missing table means no rewriting. An empty tag or an unknown key is a configuration error that names the field.
  • Listsome resolves each product link at build time. When the product URL points at a known Amazon storefront, the build sets the tag parameter, replaces a tag already there, keeps the other parameters and the fragment, and marks the link as sponsored. A per tool value can opt out with affiliate: false or supply a fixed URL.
  • Link resolution stays a pure function over the product URL, the per tool value, and the configuration. It uses a URL parser, is idempotent, and works from a fixed list of Amazon hosts rather than a host prefix.
  • Every affiliate link carries rel="sponsored nofollow". The generated pages show a disclosure before the first affiliate link, with wording the site owner can replace under [affiliates].
  • The build writes /tools/ and /tools/<slug>/index.html. The header gains a Tools link when the build finds at least one tool. Tools stay out of the Atom feed and the webmention manifest.
  • A tool file that fails to parse earns a warning that names its path. A tool link with a short Amazon URL earns a warning that names the tool, since a short link can’t carry a configured tag.
  • Affiliate rewriting for project bodies, materials, and downloads stays out of scope. The first release recognizes Amazon alone, and tools carry no images, categories, tags, or drafts.

Consequences

Positive:

  • The maker writes an Amazon identifier once, and a change to it applies to every tool on the next build.
  • The product URL in a tool file is the real product page, so it still works when affiliate settings change or disappear.
  • The generated links and the disclosure make the commercial relationship visible to readers and to tools that inspect the page.
  • The new content kind reuses the existing parser, renderer, and snapshot approach, so the work stays small.

Neutral:

  • The configuration shape allows a second platform later, though the code recognizes only Amazon until a new decision extends it.
  • Tools have their own pages and aren’t part of the feed, which keeps a curated collection separate from dated posts.

Negative:

  • Migrating the old site needs a manual step. The owner replaces each short Amazon link with its canonical product URL so the build can add a tag.
  • A second content kind means a second discovery path, a second parser, two more templates, and more snapshot files.
  • Disclosure wording is a setting, so a site owner can remove text that the Federal Trade Commission would expect to see. The default sentence is the one that ships.
  • The host list needs a code change when Amazon opens another storefront.

Corrections: purchase options and tags

Decision record 0010 replaces the required product_url field with an ordered affiliate list. Each entry carries a title and a URL. An Amazon storefront receives the configured tag, and other URLs print as written. Listsome marks every option sponsored. Listsome dropped the affiliate: false opt-out.

Tools also carry images and tags now, despite the first release excluding both. Tool tags live under /tools/tags/ and stay separate from the shared project and note taxonomy.

8. Author h-card

Date: 2026-11-22

Status

Accepted. The [author] configuration, the landing page card, and the generated /about/ page ship with this decision.

Context

The old site put the author’s name, photo, bio, and social links in its site configuration and rendered them in a sidebar. Listsome already has an author name in [site] and handles for sharing, but no profile block and no about page. The [site].about field only wraps the author name in a link to a page the build doesn’t write.

The IndieWeb wiki calls the structured version of this information an h-card. Its about page says a personal about page is usually an expanded h-card, and its authorship page describes a dedicated author page as a compact h-card on the home page linked to a fuller one elsewhere. The same wiki uses /about for that page, so a new route is unnecessary.

Decision

Listsome gains a top level [author] table in listsome.toml. It holds an optional display name, photo, short note, long bio, location, pronouns, URL, email, and a list of identity links. A missing table changes nothing. Unknown keys fail the build and name the key.

The landing page renders a compact h-card when the table has anything to show. The short note becomes p-note, the photo becomes u-photo, the name becomes p-name, and identity links carry rel="me" unless the author writes another relation. The card links to /about/ when a long bio exists.

A long bio in about is Markdown. Listsome renders it and writes an expanded h-card at /about/. The page carries u-url and u-uid on the profile link and e-note on the rendered bio. The header gains an About link only when that page exists.

The footer keeps using site.author. A different name in [author] changes the h-card and nothing else.

Consequences

Positive:

  • The author writes profile details once and gets a machine readable card and a human readable about page from the same data.
  • The route and the markup follow published IndieWeb conventions, so other sites and readers can consume them.
  • A site with no [author] table produces byte identical pages.

Neutral:

  • The [site].about field still works as an external link. The generated /about/ page is separate from it.
  • Identity links default to rel=me, and an author can set another relation for links that aren’t identities.

Negative:

  • Listsome builds the about page from config alone. An author who wants a long page with images and sections has to put that HTML in Markdown text inside the config file, which is awkward for big bios.
  • The h-card uses experimental properties such as p-pronouns, so consumers that don’t know them still see the visible text.

Corrections: no email field

The decision said [author] would hold an email address. No such field exists in AuthorConfig, and neither h-card prints one. site.email still reaches the Atom feed address. An unknown email key under [author] fails the build and names the key.

9. Notes content

Date: 2026-11-22

Status

Accepted. The change that adds the Notes collection implements it, with tests in tests/example_site.rs, unit tests in src/note_intake/ and src/model/note.rs, and example notes under examples/basic/notes. The notes format carries the field list and the markup each field earns.

Context

Listsome publishes one long-form thing: a project guide with steps, a bill of materials, and a cost. A maker who finishes a stage, dials in a setting, or picks an enclosure has nowhere short to put that. Today the only way to say something about a project is to rewrite the guide, and a guide is the wrong shape for a sentence.

The IndieWeb calls this post type a note. Someone posts a note quickly, it’s short, it’s usually untitled, and it gets its own permalink. A note is the smallest step toward owning your dated content, and it’s the post type POSSE grew around. h-entry is its markup, and a note uses few of that format’s properties.

The sister site at ryanparsley.com already keeps two collections of this shape, and they disagree about how much structure a short post wants.

src/content/ephemera/ holds one-line status posts. Its schema asks for a date, an optional image with src and alt, and a syndication array of href and title pairs. It has no title and no description. This is what src/integrations/posse.ts posts to Mastodon and Bluesky, and the integration writes the syndication links back into the file afterward.

src/content/note/ holds longer posts filed under YYYY/<month>/name.md. It reuses the blog schema, so it requires title and description alongside pubDate, tags, and categories. That collection is a small article rather than a note.

The first is the model for this feature. The second is a warning about asking a short post for an article’s fields: a description on a two-sentence note is the author restating the body.

Decision record 0002 established that microformats live in the template layer, so a maker never writes a class name. Its Corrections section notes that nothing tests microformat correctness in the generated output. A note is mostly markup and almost no structure, so that gap bites hardest here: a note whose e-content is missing parses as an empty post.

Decision record 0007 added the second kind of content, Tool, and settled the conventions this record inherits: one directory per entry at <type>/<slug>/index.md, its own discovery pass, its own collection page, and no place in the Atom feed.

Decision

Listsome gains a third kind of content, Note, beside Project and Tool.

Where a note lives

A note is notes/<slug>/index.md. One directory per entry, the shape projects and tools already keep.

This departs from the rpdc layouts on purpose, since those file short posts as loose .md files, sometimes under a date directory. Listsome keeps the directory per entry for two reasons. A note with a photo needs somewhere to put it, and the asset pipeline already copies <entry>/assets/ beside the page that refers to it. And a slug is an entry’s identity across all three kinds of content, which is what makes “this note updates that project” resolvable. A bare filename that an editor renames isn’t stable enough to carry that.

slug defaults to the directory name, so a note that names no slug gets its URL from the folder it sits in. Authors name that folder for the date in the normal case.

Fields

date is the one required field. Everything else is optional, and every optional field either renders or changes what the build does.

FieldRequiredWhat it does
dateYesOrders the collection, prints as dt-published, and heads the entry when there’s no title
slugNoReplaces the directory name in the URL
titleNoPrints as a heading and as p-name. Without it the site heads the note with its date and emits no p-name
updated_atNoPrints as dt-updated and sets the Atom entry’s updated
projectNoNames the slug of the project this note updates
imageNoHolds src plus optional alt. Listsome copies it beside the page and marks it u-photo
tagsNoLinks into the tag index and marks each link p-category
categoriesNoLinks into the category index and marks each link p-category
syndicationNoHolds href and title pairs, which Listsome marks u-syndication
authorNoReplaces the site author in the p-author h-card
statusNodraft or published. Absent means published

A note has no description, because the first body paragraph serves as the listing text. Decision record 0007 uses that paragraph for a tool, and the same reasoning applies. A note has no featured and no hidden: no template reads hidden for a project today, and a field that looks live and does nothing is a defect rather than a setting.

The format requires date rather than defaulting it to today, because a default drawn from the clock makes a build depend on when you ran it. The Atom feed’s own updated field already carries the clock, and CONTEXT.md keeps that out of snapshots for exactly that reason. A note’s place in the timeline is the opposite of a field that should move between builds.

syndication takes rpdc’s href and title shape rather than the FediverseHandles struct projects carry. A handle says who you are on a platform. A syndication link says where one particular copy went. Those are different facts, and the second one is what POSSE writes back.

Listsome resolves project: bench-power-supply during discovery, against the project list the same build already found. Resolution belongs in discovery rather than parsing because one note file can’t know whether the rest of the site has that page.

Two pages change when the reference resolves. The note page prints “An update on Bench Power Supply” as a u-related link. The project page gains an Updates section listing its notes, newest first.

A reference to a project the site doesn’t have earns a warning that names the note and the slug it looked for. The note publishes with its text and no link, the way decision record 0007 handles a short Amazon link: the file isn’t wrong enough to drop, and the thing the author asked for didn’t happen, so the build says so.

A dangling reference leaves metadata.project holding what the author wrote and the resolved link empty, so the file keeps recording what it meant to be about.

Markup

A note permalink page is one h-entry. The properties are the ones a note form uses, and no more.

PropertyListsome emits it when
h-entryalways, on the article
e-contentalways, around the body and the photo
dt-publishedalways
dt-updatedyou wrote updated_at
p-nameyou wrote title, and only then
u-url and u-uidalways, on the permalink anchor, absolute
p-author h-cardalways
u-photoyou wrote image
p-categoryon each tag and category link
u-syndicationonce per syndication entry
u-relatedproject resolved to a real page

Withholding p-name when there’s no title is deliberate. Microformats2 derives an implied name from e-content, so a name Listsome built out of the author’s first sentence would be a worse copy of it. The page emits u-uid because someone else may cite a note, and a stable identifier makes that citation resolvable.

The notes index is an h-feed whose entries abbreviate the h-entry cards, and each carries u-url, dt-published, and p-summary. p-summary rather than e-content, because an index shows a digest and the full content lives on the permalink.

These tests in tests/example_site.rs assert the classes on built pages, and they’re the first tests of microformat output in this repository. Decision record 0002 named that absence as a negative consequence. Projects, tools, and bills of materials still have no such test. A note is the kind of content where a missing class silently destroys the post, so the assertions start there.

Feeds

Notes get notes.xml. rss.xml stays projects only, the way decision record 0007 kept tools out of it. A reader who subscribed to the project feed asked for project guides, and a note isn’t one. At the rate a maker writes notes, they’d bury the guides. A reader who wants both subscribes twice, which is what a feed URL is for. The page head advertises /notes.xml beside the project feed, and only when the build found notes.

Syndication and POSSE

This record defines the frontmatter POSSE needs and doesn’t implement POSSE. A tool that posts a note elsewhere can write href and title pairs into the file, and Listsome renders them as u-syndication.

Three things this record doesn’t build, and doesn’t promise:

  • No listsome syndicate command. The [fediverse] config table stays unread, which docs/roadmap.md already says.
  • No Micropub endpoint, so nothing can create a note over the network. Decision record 0002 already records that this project decided on Micropub and never built it.
  • No WebSub hub declaration on either feed.

Webmentions

Notes join the outbound manifest, and a note’s links to its own site don’t.

This is where the record parts from decision record 0007’s choice to keep tools out of the manifest. A tool page links to a shop, and a note links to people. A note that points at someone else’s post is exactly the mention they should hear about, and the sender, the manifest, and the ledger already exist. A note’s own project reference is a site path, and extract_outbound_links keeps only absolute http and https URLs, so a note can’t webmention the site it lives on. The Updates section carries the note-to-project relationship instead, which works without a network round trip and survives a receiver that nobody configured.

Commands

listsome list --notes lists notes by date, heading, and the project each one updates. The argument parser refuses --difficulty together with --notes, because a note has no difficulty. The roadmap already lists settings that parse and do nothing as a defect, so this one doesn’t join them.

listsome new-note writes notes/<date>/index.md. It fills in date and leaves every other field as a comment, so you learn the format by opening the file rather than by reading this book.

listsome check validates note files and counts their errors in the failure message, at a level the terminal shows without RUST_LOG.

listsome build discovers notes/ beside projects/ and reports Notes: N. The build discovers notes before it writes any project page, because a project page lists the notes about it.

The header nav gains a Notes link, and the page head gains a notes.xml link, only when the build found at least one note. A site with no notes/ directory produces the pages it produced before: the snapshot diff for this change adds lines and removes none.

Out of scope for the first release

  • Note pagination. build.items_per_page applies to project index pages only, and a note listing is short-form content, and it outgrows a project listing first. This record defers it rather than half-wiring it. - A merged feed of notes and projects. - Draft notes in feeds. A draft isn’t published anywhere, so it stays out of notes.xml even with --drafts, which does publish its page. - Note-level hero images, thumbnails, or gallery lightboxes.
    • Taxonomy pages for tools. Tools keep their own /tools/tags/ namespace from decision record 0007, and this change leaves it alone. The site therefore has two answers to “where do tags live”: project and note tags share /tags/, and tool tags live under /tools/tags/. That asymmetry is the honest description of what shipped, not a plan.

Consequences

Positive:

  • A maker can say something about a build in one paragraph, and the site keeps it on a timeline with a permalink. - A project page becomes a history rather than a snapshot. The Updates section is the first part of the site that shows a project move over time. - Every note carries the h-entry properties that make IndieWeb tooling read it, and the author typed no class name to get them.
    • The markup has tests, which is the gap decision record 0002 named and this change starts closing. - The frontmatter a POSSE tool needs exists before the tool does, so the syndication work has a format to write into rather than invent. - A site with no notes changes nothing, and the snapshots prove it.

Neutral:

  • A note is a third discovery path, a third parser, and two more templates. Decision record 0007 accepted the same cost for tools. The cost is smaller here, because this change shares extract_frontmatter, markdown_options, render_events, and the first-paragraph excerpt with the types that came before instead of copying them. - The listing text for an untitled note is its first paragraph, so a note that opens with a long paragraph makes a long listing. - p-name on a note depends on whether the author wrote a title. That’s what the spec wants, and it may look inconsistent between two notes on one page. - The directory name is a note’s default slug, so renaming a note’s folder changes its URL.

Negative:

  • project is a slug someone typed by hand. Listsome warns when it matches nothing, and renaming a project silently orphans every note about it. Nothing rewrites the references.
  • A note about a draft project earns the same warning in a build that excludes drafts, because the discovery pass that resolves the reference only knows about the projects it published. The link and the warning are both correct for that build, and a maker who works in drafts on a project with notes hears about it every time. Finding out which slugs exist as drafts costs a second walk of projects/, and this record doesn’t spend it in the first release. The roadmap carries it. - A note with no title gets a raw date string as its heading. The templates have no locale-aware date formatting, and adding it for notes alone would be worse than the flat string. - Two feeds means a reader has to know to subscribe twice. - A tag or category that only notes use now gets its own taxonomy page. It didn’t at first, and the difference is a working link against a dead one. See Dead taxonomy links below. - date sorts as written. A note dated 13/11/2026 sorts between the 1s and 2s of some other month, and the build prints no warning for a date that isn’t ISO 8601. - The build records syndication links and doesn’t verify them. An entry pointing nowhere renders as a working link.

This section corrects a claim the first draft made, because the reviewer of the pull request read the wrong version of it.

The first draft described the tag situation this way: “a note about a tag is absent from that tag’s page, which is confusing.” That understated it. generate_tags and generate_categories built their pages from projects alone, so a tag no project used had no page at all, and the link a note printed went to a 404. The example site carried /tags/planning/ and /categories/machinery/ as dead links on a page that otherwise built cleanly. No check noticed, because nothing walks the links a site emits, and decision record 0004 already lists that gap as a feature nobody built.

The cause was a copied precedent. A project can link to /tags/<x>/ safely, because listsome builds those pages from project tags, so every tag a project carries has a page by construction. A second kind of content breaks that invariant, and Tool had already dodged it by namespacing its own tags under /tools/tags/. Notes copied the project template’s link target instead.

Notes now contribute to the site-wide taxonomy. Taxonomy carries the projects and the notes together, tag pages and category pages list both kinds, and an index card says “3 entries” because the count spans both. The card’s own line still names what’s there. It reads “3 projects in woodworking.” or “1 note in Machinery.” so the general count doesn’t hide the specific contents.

Two things for whoever touches this next:

  • The fix is a regression test, not just a code change. tests/example_site.rs walks every /tags/ and /categories/ link a note page prints and fails when listsome didn’t write the target page. That test is the only reason this class of bug can’t silently come back, and general internal link checking still doesn’t exist.
  • Tool tags remain separate. Merging /tools/tags/ into the same taxonomy would decide whether a curated shopping list belongs on the same page as a build log, and that’s a decision record of its own rather than a cleanup to slip in here.

Corrections: listings paginate

The “Out of scope for the first release” section deferred note pagination. It landed later. build.items_per_page now splits the notes index, the tools index, the tool tag pages, the tool tag index, and the site-wide tag and category pages. All of them use the page helper the home page already had, so a page number past the end clamps to the last real page and the outer pages drop the link that would lead nowhere.

The build writes later pages under page/<n>/ beside each listing’s first page. A listing that fits on one page writes no page links, so a site with few notes keeps the markup the first release wrote. Two parts of the original decision still hold: notes.xml carries every note whatever the page size, and tool tags stay in their own namespace rather than joining the site-wide taxonomy.

The regression tests are in tests/example_site.rs. One builds twenty notes, twelve tools, and eight projects at five per page, then checks the first, middle, and last page of every listing. A second builds the same site at fifteen and checks that twenty notes land on two pages, which is the size this site ships with.

10. Tool purchase options

Date: 2026-11-22

Status

Accepted and implemented by the change that turns a tool’s single product_url into an affiliate collection. Tests are in tests/example_site.rs, unit tests in src/affiliate.rs and src/model/tool.rs, and example tools under examples/basic/tools. The tools format carries the field list and the markup each option earns. This amends the single-link model decided in decision record 7.

Context

Decision record 7 gave a tool one product_url, which the build tagged for Amazon. A maker often buys the same thing from more than one store, and the stores differ in a way worth showing. Amazon ships in days, AliExpress is cheaper but slow. One link can’t express that choice.

AliExpress, unlike Amazon, has no static tracking parameter. AliExpress mints its affiliate link per product through its portals or API, so listsome can’t append a tag the way it does for an Amazon storefront. Any “add AliExpress” design has to accept a pre-minted link for that store while still tagging Amazon URLs, and shouldn’t hard-code one retailer’s scheme into a rule every future store must fit.

Decision

A tool replaces product_url with an ordered affiliate list. Each entry is a store label and a URL:

affiliate:
  - title: Amazon
    url: https://www.amazon.com/dp/B00F2CGXGG
  - title: AliExpress
    url: https://s.click.aliexpress.com/e/<minted>
  • Resolution is per option, keyed by host. An Amazon storefront URL receives the configured [affiliates.amazon] tag. Any other URL, including an AliExpress s.click link, prints exactly as written.
  • Every option is a sponsored link with rel="sponsored nofollow", because an affiliate entry is a referral by intent. Listsome drops the affiliate: false opt-out. A tool that’s only a write-up lists no options.
  • The tool page renders one line, Purchase: followed by each option’s title linked to its resolved URL. The listing links a tool’s title to its own page, not to a store, since there is no longer a single store URL.
  • description no longer collides with a buy link, so it stays optional and falls back to the first body paragraph as before.

The design stays retailer-agnostic. Adding a store that mints its own links, such as AliExpress today and others later, needs no engine change. Listsome tags hosts it knows and prints the rest.

Consequences

  • A breaking frontmatter change. Every existing tool’s product_url becomes an affiliate entry. The example tools and the downstream site migrate in the same change. new-tool scaffolds a one-entry Amazon list.
  • Losing affiliate: false means a tool can’t list a purchase link it doesn’t earn from. That case is rare, and the tool lists no option instead.
  • Listsome drops the per-tool “direct link” affordance. The Purchase: line replaces it. Templates and snapshots change with it.

11. Not-found page for missing routes

Date: 2026-11-23

Status

Accepted and implemented: the build writes a styled 404.html at the output root, and listsome serve returns that page (with a real 404 status) for routes that match no generated file. Unit test test_render_404_page in src/render/mod.rs, integration test the_build_emits_a_not_found_page in tests/example_site.rs, and the router tests in src/server/mod.rs (the_router_serves_the_not_found_page_with_a_404 and the_router_404s_without_a_built_page) cover it.

Context

A listsome site is static files behind a web server. When a path does not match a generated page, the server returns its default error unless the site ships a not-found page. Static hosts (GitHub Pages, Netlify, Cloudflare Pages) serve a root 404.html automatically, and nginx serves it with error_page 404 /404.html;. Before this change listsome emitted none, so a dead link rendered a bare, chrome-less server error instead of a page in the site’s voice.

This came up migrating an older site whose post URLs used a different scheme than listsome’s /<slug>/. Old permalinks 404 after cutover; low traffic makes a full redirect table not worth it, but the dead ends should still look like the site and offer a way home.

Decision

The build always writes 404.html at the output root, rendered from the shared base layout with a short “Not found” message and a link to /. It is emitted unconditionally: every site can use it, and a host that ignores it loses nothing. Resolution is the existing template path (a render_404 method and a write_404_page), so it carries the site header, footer, styles, and any custom CSS like any other page.

The development server reads that same file. Its static-file fallback hands any path that matches no output file to a handler that returns 404.html with an explicit 404 status and an HTML media type, so listsome serve behaves like a static host instead of returning the blank 404 a bare file server would. When the page has not been built yet it falls back to a minimal not-found body, still under 404, never a soft 200.

Consequences

  • Static hosts and an nginx error_page 404 /404.html; line get a real page for free; no server change is required for the common hosts that auto-discover 404.html.
  • listsome serve shows the same page for an unknown route, so a not-found in development matches production. The response keeps the 404 status, so it stays a true error rather than a soft 200.
  • It is not a redirect system. URLs that moved still return 404. A redirect map remains a host-level concern, out of scope, in keeping with the roadmap, which holds that listsome does not rewrite or redirect paths.
  • A build now produces one extra file at the root. Harmless to diff-based deploys.

12. Sitemap for search engines

Date: 2026-11-26

Status

Accepted and implemented: the build writes sitemap.xml at the output root. Unit tests sitemap_lists_index_pages_and_skips_not_found and urls_are_sorted_and_base_has_no_double_slash in src/generator/sitemap.rs, and the integration test the_build_emits_a_sitemap in tests/example_site.rs cover it.

Context

listsome sites are static files. Search engines need a way to discover the pages. Without a sitemap, they crawl what they can find by following links, and they miss anything that is not reachable from a top-level page. Mature static site generators emit a sitemap.xml for this reason; the old site being migrated already had one, and losing it is a regression.

The hard problem in sitemap generation is not the XML (a simple document) but keeping the sitemap in sync with the pages the generator actually emits. Every collection and feature that adds pages (projects/, notes/, tools/, tool-tag pages, tag pages, category pages, pagination, the about page once the author config carries one, and any future page type) must be reflected in the sitemap. Reconstructing URLs by iterating those collections from the generator duplicates the URL shapes and risks drift whenever a scheme changes.

listsome also has a principle of build determinism (the webmention ledger work made sent.json byte-stable across rebuilds). A sitemap that stamps <lastmod> from file metadata or build time breaks that principle: every rebuild would produce a different XML, which is noise for diff-based deploys and semantically wrong because the content did not actually change.

Decision

Emit sitemap.xml from the generated output tree. After every page is written, the generator walks output_dir recursively, collects every index.html, and turns each into one canonical <url><loc> under site.url. The not-found page (404.html) is excluded.

Two rules make this correct and stable:

  • Only walk, do not reconstruct. A file’s presence in output/ is the source of truth for “the page exists,” and the file’s location is the source of truth for “the page’s URL.” The URL mapping is a one-line transformation (/foo/index.html → /foo/, /index.html → /) and needs no knowledge of the content model.
  • No <lastmod>. Skip it. The sitemap is a discovery document, not a freshness document; the host’s response headers already carry freshness, and search engines accept loc-only entries. This keeps the file byte-for-byte deterministic across rebuilds, aligned with the ledger principle.

The generator sorts and dedupes URLs before writing so the same input produces the same bytes regardless of filesystem read order.

Consequences

  • A sitemap is emitted for every site automatically. Nothing to configure.
  • Search engines can index the whole site by reading one XML document.
  • The sitemap can never drift from the actual output. A future page type that writes an index.html under the output tree shows up in the sitemap with no additional wiring.
  • <lastmod> is missing, which is technically permitted by sitemaps.org 0.9. If freshness ever matters for this corpus, the right place to fix it is in the page metadata (frontmatter updated:), not in filesystem modification times, so the determinism guarantee survives.
  • Non-page artifacts (rss.xml, notes.xml, 404.html, .webmentions/) are deliberately excluded. The build’s index.html files are the only inputs.
  • A build now produces one extra file at the root. Harmless to diff-based deploys.