News as blog posts: richer post page, paginated index, archives, drafts, motorino new #9
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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:
{{news_blog}}with title, long date, categories, description and a read more link, paginated at 10 posts (/news/page/2/)./news/2026/,/news/2026/11/) whentemplates/archive.htmlexists, and a{{news_archive}}block.og_typeand article meta placeholders, so a post isog:type=article.Mastodon:header key, shown as a reply link only when present.content:encoded(full text) and a plaindescription.Draft: trueand future dates keep a post hidden;motorino build -draftsshows them for a preview.motorino new "title"createsnews/<slug>.mdwith 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.
Done in #11, released in motorino 1.3.0 and live on kmalloc.org.