diff --git a/.gitignore b/.gitignore index a81134f..0f4c639 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ preview/ __pycache__/ *.pyc +capsule/ +public/ 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 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/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. diff --git a/site.json b/site.json index 235ba78..f4d6901 100644 --- a/site.json +++ b/site.json @@ -1,5 +1,9 @@ { "base_url": "https://kmalloc.org", + "news_language": "en", + "gemini_language": "it", + "gemini_web_paths": "/~", + "author": "squid", "languages": [ "en", "it", diff --git a/static/style.css b/static/style.css index 3b9c2ad..61838cb 100644 --- a/static/style.css +++ b/static/style.css @@ -131,6 +131,24 @@ 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; +} + +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 @@ +
-{{post_byline}} -
+{{post_summary}} +{{post_meta}} {{post_body}} + +{{post_mastodon}} + +{{post_nav}}