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

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.