Gemini output: build the site as gemtext for a capsule #10

Closed
opened 2026-11-16 11:01:00 +00:00 by squid · 1 comment
Owner

I want to serve kmalloc.org as a Gemini capsule too. motorino will write a gemtext tree (.gmi) with the same pages, languages and news as the HTML site, from the same Markdown.

  • New subcommand motorino gemini -site DIR -out DIR.
  • Markdown to gemtext: headings, one line paragraphs, links only on => lines after the paragraph, lists, quotes, preformatted blocks, no inline emphasis, images as links, tables as aligned preformatted blocks, no HTML.
  • Internal links become relative .gmi links, external https:// and mailto: links stay.
  • One index.gmi per folder, same language layout as the site; news index, posts, categories, archives and a gemlog style feed index (=> post.gmi YYYY-MM-DD Title).
  • Tests on sample Markdown and on a whole site (no empty .gmi, no broken internal link).

The Gemini server is out of scope here.

I want to serve kmalloc.org as a Gemini capsule too. motorino will write a gemtext tree (`.gmi`) with the same pages, languages and news as the HTML site, from the same Markdown. - New subcommand `motorino gemini -site DIR -out DIR`. - Markdown to gemtext: headings, one line paragraphs, links only on `=>` lines after the paragraph, lists, quotes, preformatted blocks, no inline emphasis, images as links, tables as aligned preformatted blocks, no HTML. - Internal links become relative `.gmi` links, external `https://` and `mailto:` links stay. - One `index.gmi` per folder, same language layout as the site; news index, posts, categories, archives and a gemlog style feed index (`=> post.gmi YYYY-MM-DD Title`). - Tests on sample Markdown and on a whole site (no empty `.gmi`, no broken internal link). The Gemini server is out of scope here.
Author
Owner

Done in #12, released in motorino 1.3.0. The capsule is live at gemini://kmalloc.org.

Done in #12, released in motorino 1.3.0. The capsule is live at gemini://kmalloc.org.
squid closed this issue 2026-11-16 12:02:31 +00:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
squid/motorino#10
No description provided.