News as blog posts: richer post page, paginated index, archives, drafts, motorino new #9

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

I want the news of kmalloc.org to read like a blog. Today a post page is only a title, a date and the text, the index is one flat list and the feed carries the text in description.

What I am adding, all opt-in or backward compatible so a site that does not use it builds as before:

  • Post page: long date in the language of the page, author, clickable categories, the description as a summary, reading time, older/newer links and a link to all news (new placeholders).
  • Blog style index block {{news_blog}} with title, long date, categories, description and a read more link, paginated at 10 posts (/news/page/2/).
  • Archive pages by year and month (/news/2026/, /news/2026/11/) when templates/archive.html exists, and a {{news_archive}} block.
  • Open Graph: og_type and article meta placeholders, so a post is og:type=article.
  • Mastodon: header key, shown as a reply link only when present.
  • Feed with content:encoded (full text) and a plain description.
  • Draft: true and future dates keep a post hidden; motorino build -drafts shows them for a preview.
  • motorino new "title" creates news/<slug>.md with the header ready, as a draft.

No JavaScript, no external service, no em dash or exclamation mark in the texts; every visible string comes from the language files.

I want the news of kmalloc.org to read like a blog. Today a post page is only a title, a date and the text, the index is one flat list and the feed carries the text in `description`. What I am adding, all opt-in or backward compatible so a site that does not use it builds as before: - Post page: long date in the language of the page, author, clickable categories, the description as a summary, reading time, older/newer links and a link to all news (new placeholders). - Blog style index block `{{news_blog}}` with title, long date, categories, description and a read more link, paginated at 10 posts (`/news/page/2/`). - Archive pages by year and month (`/news/2026/`, `/news/2026/11/`) when `templates/archive.html` exists, and a `{{news_archive}}` block. - Open Graph: `og_type` and article meta placeholders, so a post is `og:type=article`. - `Mastodon:` header key, shown as a reply link only when present. - Feed with `content:encoded` (full text) and a plain `description`. - `Draft: true` and future dates keep a post hidden; `motorino build -drafts` shows them for a preview. - `motorino new "title"` creates `news/<slug>.md` with the header ready, as a draft. No JavaScript, no external service, no em dash or exclamation mark in the texts; every visible string comes from the language files.
Author
Owner

Done in #11, released in motorino 1.3.0 and live on kmalloc.org.

Done in #11, released in motorino 1.3.0 and live on kmalloc.org.
squid closed this issue 2026-11-16 12:02:30 +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#9
No description provided.