From 85b01cf5883f07953edcc326d0cc64d5de8fa9e8 Mon Sep 17 00:00:00 2001 From: squid Date: Mon, 16 Nov 2026 12:12:27 +0100 Subject: [PATCH 1/6] feat(news): news in blog style Templates and strings for the blog features of the next motorino: a post page with the long date, author, categories, summary, reading time and links to the older and newer posts, the blog list with pages and the archive on the news index, Open Graph article meta, month names and the interface strings in the five languages, the author and the language of the news in site.json, and the styles. Needs the motorino release that adds these features (.motorino-version is not changed here). --- content/en/news/index.md | 6 +++++- lang/de.json | 28 +++++++++++++++++++++++++++- lang/en.json | 28 +++++++++++++++++++++++++++- lang/es.json | 28 +++++++++++++++++++++++++++- lang/fr.json | 28 +++++++++++++++++++++++++++- lang/it.json | 28 +++++++++++++++++++++++++++- site.json | 2 ++ static/style.css | 33 +++++++++++++++++++++++++++++++++ templates/archive.html | 5 +++++ templates/base.html | 3 ++- templates/post.html | 9 ++++++--- 11 files changed, 188 insertions(+), 10 deletions(-) create mode 100644 templates/archive.html diff --git a/content/en/news/index.md b/content/en/news/index.md index 137c96e..19b5b77 100644 --- a/content/en/news/index.md +++ b/content/en/news/index.md @@ -7,10 +7,14 @@ Layout: bare Updates from kmalloc.org. -{{news_list}} +{{news_blog}} ## Categories {#categories} {{categories_list}} +## Archive {#archive} + +{{news_archive}} + [RSS feed](/news/feed.xml) diff --git a/lang/de.json b/lang/de.json index d03cc92..5884a7e 100644 --- a/lang/de.json +++ b/lang/de.json @@ -18,5 +18,31 @@ "news": "News" }, "powered_by": "Powered by", - "category_h": "Category" + "category_h": "Category", + "date_long": "{d}. {month} {y}", + "date_month_year": "{month} {y}", + "reading_time": "{n} Min. Lesezeit", + "post_older": "Älter", + "post_newer": "Neuer", + "post_nav": "Weitere News", + "reply_mastodon": "Auf Mastodon antworten", + "read_more": "Weiterlesen", + "pager_label": "News-Seiten", + "pager_newer": "Neuere News", + "pager_older": "Ältere News", + "pager_page": "Seite {n} von {total}", + "archive_h": "Archiv", + "archive_up": "Archiv des Jahres", + "month_01": "Januar", + "month_02": "Februar", + "month_03": "März", + "month_04": "April", + "month_05": "Mai", + "month_06": "Juni", + "month_07": "Juli", + "month_08": "August", + "month_09": "September", + "month_10": "Oktober", + "month_11": "November", + "month_12": "Dezember" } diff --git a/lang/en.json b/lang/en.json index 679a91a..5a7c240 100644 --- a/lang/en.json +++ b/lang/en.json @@ -22,5 +22,31 @@ "news": "News" }, "powered_by": "Powered by", - "category_h": "Category" + "category_h": "Category", + "date_long": "{d} {month} {y}", + "date_month_year": "{month} {y}", + "reading_time": "{n} min read", + "post_older": "Older", + "post_newer": "Newer", + "post_nav": "More news", + "reply_mastodon": "Reply on Mastodon", + "read_more": "Read more", + "pager_label": "News pages", + "pager_newer": "Newer news", + "pager_older": "Older news", + "pager_page": "Page {n} of {total}", + "archive_h": "Archive", + "archive_up": "Archive of the year", + "month_01": "January", + "month_02": "February", + "month_03": "March", + "month_04": "April", + "month_05": "May", + "month_06": "June", + "month_07": "July", + "month_08": "August", + "month_09": "September", + "month_10": "October", + "month_11": "November", + "month_12": "December" } diff --git a/lang/es.json b/lang/es.json index 58630cf..183fe51 100644 --- a/lang/es.json +++ b/lang/es.json @@ -18,5 +18,31 @@ "news": "News" }, "powered_by": "Powered by", - "category_h": "Category" + "category_h": "Category", + "date_long": "{d} de {month} de {y}", + "date_month_year": "{month} de {y}", + "reading_time": "{n} min de lectura", + "post_older": "Más antigua", + "post_newer": "Más reciente", + "post_nav": "Más noticias", + "reply_mastodon": "Responder en Mastodon", + "read_more": "Leer más", + "pager_label": "Páginas de noticias", + "pager_newer": "Noticias más recientes", + "pager_older": "Noticias más antiguas", + "pager_page": "Página {n} de {total}", + "archive_h": "Archivo", + "archive_up": "Archivo del año", + "month_01": "enero", + "month_02": "febrero", + "month_03": "marzo", + "month_04": "abril", + "month_05": "mayo", + "month_06": "junio", + "month_07": "julio", + "month_08": "agosto", + "month_09": "septiembre", + "month_10": "octubre", + "month_11": "noviembre", + "month_12": "diciembre" } diff --git a/lang/fr.json b/lang/fr.json index a54b130..1354310 100644 --- a/lang/fr.json +++ b/lang/fr.json @@ -18,5 +18,31 @@ "news": "News" }, "powered_by": "Powered by", - "category_h": "Category" + "category_h": "Category", + "date_long": "{d} {month} {y}", + "date_month_year": "{month} {y}", + "reading_time": "{n} min de lecture", + "post_older": "Plus ancien", + "post_newer": "Plus récent", + "post_nav": "Autres actualités", + "reply_mastodon": "Répondre sur Mastodon", + "read_more": "Lire la suite", + "pager_label": "Pages des actualités", + "pager_newer": "Actualités plus récentes", + "pager_older": "Actualités plus anciennes", + "pager_page": "Page {n} sur {total}", + "archive_h": "Archives", + "archive_up": "Archives de l'année", + "month_01": "janvier", + "month_02": "février", + "month_03": "mars", + "month_04": "avril", + "month_05": "mai", + "month_06": "juin", + "month_07": "juillet", + "month_08": "août", + "month_09": "septembre", + "month_10": "octobre", + "month_11": "novembre", + "month_12": "décembre" } diff --git a/lang/it.json b/lang/it.json index d6b181f..b9a7a08 100644 --- a/lang/it.json +++ b/lang/it.json @@ -22,5 +22,31 @@ "news": "News" }, "powered_by": "Powered by", - "category_h": "Categoria" + "category_h": "Categoria", + "date_long": "{d} {month} {y}", + "date_month_year": "{month} {y}", + "reading_time": "{n} min di lettura", + "post_older": "Più vecchia", + "post_newer": "Più recente", + "post_nav": "Altre news", + "reply_mastodon": "Rispondi su Mastodon", + "read_more": "Leggi tutto", + "pager_label": "Pagine delle news", + "pager_newer": "News più recenti", + "pager_older": "News meno recenti", + "pager_page": "Pagina {n} di {total}", + "archive_h": "Archivio", + "archive_up": "Archivio dell'anno", + "month_01": "gennaio", + "month_02": "febbraio", + "month_03": "marzo", + "month_04": "aprile", + "month_05": "maggio", + "month_06": "giugno", + "month_07": "luglio", + "month_08": "agosto", + "month_09": "settembre", + "month_10": "ottobre", + "month_11": "novembre", + "month_12": "dicembre" } diff --git a/site.json b/site.json index 235ba78..c4840d2 100644 --- a/site.json +++ b/site.json @@ -1,5 +1,7 @@ { "base_url": "https://kmalloc.org", + "news_language": "en", + "author": "squid", "languages": [ "en", "it", diff --git a/static/style.css b/static/style.css index 3b9c2ad..fc80741 100644 --- a/static/style.css +++ b/static/style.css @@ -131,6 +131,39 @@ code { gap: .5em; } +.lede { + margin: -.25em 0 1em; + color: var(--muted); + font-size: 1.125em; +} + +.meta { + margin-top: -.25em; + color: var(--muted); + font-size: .9375em; +} + +article { + margin: 1.5em 0; + padding-bottom: .5em; + border-bottom: 1px solid var(--border); +} + +article h2 { + margin: 0 0 .25em; + font-size: 1.25em; +} + +article p { + margin: .5em 0; +} + +nav ul { + margin: 1em 0; + padding: 0; + list-style: none; +} + @media print { :root { --bg: #FFF; diff --git a/templates/archive.html b/templates/archive.html new file mode 100644 index 0000000..401c31d --- /dev/null +++ b/templates/archive.html @@ -0,0 +1,5 @@ +

{{archive_h}}: {{archive_name}}

+ +{{archive_nav}} + +{{archive_posts}} diff --git a/templates/base.html b/templates/base.html index ba0a406..f40d963 100644 --- a/templates/base.html +++ b/templates/base.html @@ -7,9 +7,10 @@ - + +{{article_meta}} diff --git a/templates/post.html b/templates/post.html index 8a9a1aa..77f32ea 100644 --- a/templates/post.html +++ b/templates/post.html @@ -1,7 +1,10 @@

{{post_title}}

-

-{{post_byline}} -

+{{post_summary}} +{{post_meta}} {{post_body}} + +{{post_mastodon}} + +{{post_nav}} -- 2.54.0 From 17f9dbf3e887b26cb9f84f8154e9bcc1b24ed16f Mon Sep 17 00:00:00 2001 From: squid Date: Mon, 16 Nov 2026 12:28:21 +0100 Subject: [PATCH 2/6] feat: settings for the Gemini capsule gemini_language puts Italian at the root of the capsule, the language the Agate server serves by default, and gemini_web_paths keeps /~ (the personal pages, served by the web server) as a link to the website. --- site.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/site.json b/site.json index c4840d2..f4d6901 100644 --- a/site.json +++ b/site.json @@ -1,6 +1,8 @@ { "base_url": "https://kmalloc.org", "news_language": "en", + "gemini_language": "it", + "gemini_web_paths": "/~", "author": "squid", "languages": [ "en", -- 2.54.0 From bbd15481eaaa8a1a0f74dca1eb190e17bcc2afd0 Mon Sep 17 00:00:00 2001 From: squid Date: Mon, 16 Nov 2026 12:32:31 +0100 Subject: [PATCH 3/6] style(news): drop the article rules, the lists use the note panel The blog list entries are note panels now, so nothing uses article any more. --- static/style.css | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/static/style.css b/static/style.css index fc80741..61838cb 100644 --- a/static/style.css +++ b/static/style.css @@ -143,21 +143,6 @@ code { font-size: .9375em; } -article { - margin: 1.5em 0; - padding-bottom: .5em; - border-bottom: 1px solid var(--border); -} - -article h2 { - margin: 0 0 .25em; - font-size: 1.25em; -} - -article p { - margin: .5em 0; -} - nav ul { margin: 1em 0; padding: 0; -- 2.54.0 From 9e2812415798972bb75e259a48140d54530f9846 Mon Sep 17 00:00:00 2001 From: Tommaso Giachi Date: Mon, 16 Nov 2026 12:40:44 +0100 Subject: [PATCH 4/6] docs(news): drafts for the pastebin and the Gemini capsule Both are Draft: true, so they stay out of the site until the flag is removed. The pastebin one can go out with the next publish; the capsule one waits until gemini://kmalloc.org answers. --- news/gemini-capsule.md | 27 +++++++++++++++++++++++++++ news/paste.md | 21 +++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 news/gemini-capsule.md create mode 100644 news/paste.md diff --git a/news/gemini-capsule.md b/news/gemini-capsule.md new file mode 100644 index 0000000..d35748f --- /dev/null +++ b/news/gemini-capsule.md @@ -0,0 +1,27 @@ +Title: A Gemini capsule for kmalloc.org +Author: squid +Date: 2026-11-16T18:00:00+0100 +Categories: News +Description: kmalloc.org is now also a capsule on Gemini, a small protocol for reading text: gemini://kmalloc.org. +Draft: true +- + +kmalloc.org now has a capsule on Gemini: [gemini://kmalloc.org](gemini://kmalloc.org/). + +## What Gemini is + +Gemini is a small protocol for reading text. A page is plain text: no scripts, no cookies, no ads, no tracking pixels. To read it you need a Gemini client, such as [Lagrange](https://gmi.skyjake.fi/lagrange/), Amfora or Kristall. + +## What is there + +The same pages as the website: the manifesto and its history, services, people and projects. The news are in a feed you can subscribe to from your client: `gemini://kmalloc.org/news/feed.gmi`. + +The capsule is in Italian, with the other languages under `/en/`, `/es/`, `/de/` and `/fr/`. The news are in English only, as on the website. + +## How it is made + +The capsule is built from the same Markdown files as the website, by motorino, the generator written for this site, and served by Agate. Gemini has no tables and no inline images, so a wide table becomes one card per row and an image becomes a link. + +## The certificate + +The certificate is self-signed, as usual in Gemini. Your client asks you to trust it the first time you visit and remembers it after that. If it changes later without notice, be careful. diff --git a/news/paste.md b/news/paste.md new file mode 100644 index 0000000..346d55a --- /dev/null +++ b/news/paste.md @@ -0,0 +1,21 @@ +Title: A pastebin: paste.kmalloc.org +Author: squid +Date: 2026-11-16T18:00:00+0100 +Categories: News +Description: Share a piece of text or code with a link. It is encrypted in your browser and it expires. +Draft: true +- + +There is now a pastebin: [paste.kmalloc.org](https://paste.kmalloc.org/). It runs [PrivateBin](https://privatebin.info/). + +## How it works + +You write or paste a text and get a link. The text is encrypted in your browser before it is sent, and the key stays in the link, after the `#`: the server never sees it. Whoever has the full link can read the paste, nobody else. + +## No account, and everything expires + +Anyone can paste, with no account. Every paste expires, and you choose when: from 5 minutes to 1 month, one week by default. There is no "never". You can also add a password, or have the paste burn after the first reading. + +## Limits + +A paste is at most 512 KiB and the same address can make one paste every 30 seconds. No files and no comments, only text and code. If someone abuses it, we remove the paste and we may block the address. -- 2.54.0 From 02ca9ee96bf33fa5fee0c3dda0547d1b4c5ff489 Mon Sep 17 00:00:00 2001 From: squid Date: Mon, 16 Nov 2026 12:49:17 +0100 Subject: [PATCH 5/6] chore: ignore the capsule and public output folders --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index a81134f..0f4c639 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ preview/ __pycache__/ *.pyc +capsule/ +public/ -- 2.54.0 From 102640ca4bf175d8b0bd4f08b098f8d2e9ecd3ff Mon Sep 17 00:00:00 2001 From: Tommaso Giachi Date: Mon, 16 Nov 2026 12:57:09 +0100 Subject: [PATCH 6/6] chore: build the site with motorino 1.3.0 1.3.0 brings the blog-style news and the Gemini capsule (motorino gemini). --- .motorino-version | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.motorino-version b/.motorino-version index cf0cb12..4661f0c 100644 --- a/.motorino-version +++ b/.motorino-version @@ -1,2 +1,2 @@ -1.2.0 -4d9f5016d8381ca46916efb661a8508badf61e171de3f7b916c386490ad8f787 +1.3.0 +de9e44d1b2e7924579371787b9c54de6772e579d81344927fcc392c772b9715c -- 2.54.0