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.
| Field | Required | What it does |
|---|---|---|
date | Yes | Orders the collection, prints as dt-published, and heads the entry when there’s no title |
slug | No | Replaces the directory name in the URL |
title | No | Prints as a heading and as p-name. Without it the site heads the note with its date and emits no p-name |
updated_at | No | Prints as dt-updated and sets the Atom entry’s updated |
project | No | Names the slug of the project this note updates |
image | No | Holds src plus optional alt. Listsome copies it beside the page and marks it u-photo |
tags | No | Links into the tag index and marks each link p-category |
categories | No | Links into the category index and marks each link p-category |
syndication | No | Holds href and title pairs, which Listsome marks u-syndication |
author | No | Replaces the site author in the p-author h-card |
status | No | draft 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.
The link to a project goes both ways
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.
| Property | Listsome emits it when |
|---|---|
h-entry | always, on the article |
e-content | always, around the body and the photo |
dt-published | always |
dt-updated | you wrote updated_at |
p-name | you wrote title, and only then |
u-url and u-uid | always, on the permalink anchor, absolute |
p-author h-card | always |
u-photo | you wrote image |
p-category | on each tag and category link |
u-syndication | once per syndication entry |
u-related | project 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 syndicatecommand. The[fediverse]config table stays unread, whichdocs/roadmap.mdalready 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_pageapplies 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 ofnotes.xmleven with--drafts, which does publish its page. - Note-levelheroimages, 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.
- Taxonomy pages for tools. Tools keep their own
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-entryproperties 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-nameon 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:
projectis 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. -datesorts as written. A note dated13/11/2026sorts between the1s and2s 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.
Dead taxonomy links
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.rswalks 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.