Merge pull request 'News in blog style, settings for the Gemini capsule, motorino 1.3.0' (#17) from feat/blog-news into main
All checks were successful
check / check (push) Successful in 16s
All checks were successful
check / check (push) Successful in 16s
This commit is contained in:
commit
45366b1bb2
15 changed files with 227 additions and 12 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -1,3 +1,5 @@
|
||||||
preview/
|
preview/
|
||||||
__pycache__/
|
__pycache__/
|
||||||
*.pyc
|
*.pyc
|
||||||
|
capsule/
|
||||||
|
public/
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,2 @@
|
||||||
1.2.0
|
1.3.0
|
||||||
4d9f5016d8381ca46916efb661a8508badf61e171de3f7b916c386490ad8f787
|
de9e44d1b2e7924579371787b9c54de6772e579d81344927fcc392c772b9715c
|
||||||
|
|
|
||||||
|
|
@ -7,10 +7,14 @@ Layout: bare
|
||||||
|
|
||||||
Updates from kmalloc.org.
|
Updates from kmalloc.org.
|
||||||
|
|
||||||
{{news_list}}
|
{{news_blog}}
|
||||||
|
|
||||||
## Categories {#categories}
|
## Categories {#categories}
|
||||||
|
|
||||||
{{categories_list}}
|
{{categories_list}}
|
||||||
|
|
||||||
|
## Archive {#archive}
|
||||||
|
|
||||||
|
{{news_archive}}
|
||||||
|
|
||||||
[RSS feed](/news/feed.xml)
|
[RSS feed](/news/feed.xml)
|
||||||
|
|
|
||||||
28
lang/de.json
28
lang/de.json
|
|
@ -18,5 +18,31 @@
|
||||||
"news": "News"
|
"news": "News"
|
||||||
},
|
},
|
||||||
"powered_by": "Powered by",
|
"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"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
28
lang/en.json
28
lang/en.json
|
|
@ -22,5 +22,31 @@
|
||||||
"news": "News"
|
"news": "News"
|
||||||
},
|
},
|
||||||
"powered_by": "Powered by",
|
"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"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
28
lang/es.json
28
lang/es.json
|
|
@ -18,5 +18,31 @@
|
||||||
"news": "News"
|
"news": "News"
|
||||||
},
|
},
|
||||||
"powered_by": "Powered by",
|
"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"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
28
lang/fr.json
28
lang/fr.json
|
|
@ -18,5 +18,31 @@
|
||||||
"news": "News"
|
"news": "News"
|
||||||
},
|
},
|
||||||
"powered_by": "Powered by",
|
"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"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
28
lang/it.json
28
lang/it.json
|
|
@ -22,5 +22,31 @@
|
||||||
"news": "News"
|
"news": "News"
|
||||||
},
|
},
|
||||||
"powered_by": "Powered by",
|
"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"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
27
news/gemini-capsule.md
Normal file
27
news/gemini-capsule.md
Normal file
|
|
@ -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.
|
||||||
21
news/paste.md
Normal file
21
news/paste.md
Normal file
|
|
@ -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.
|
||||||
|
|
@ -1,5 +1,9 @@
|
||||||
{
|
{
|
||||||
"base_url": "https://kmalloc.org",
|
"base_url": "https://kmalloc.org",
|
||||||
|
"news_language": "en",
|
||||||
|
"gemini_language": "it",
|
||||||
|
"gemini_web_paths": "/~",
|
||||||
|
"author": "squid",
|
||||||
"languages": [
|
"languages": [
|
||||||
"en",
|
"en",
|
||||||
"it",
|
"it",
|
||||||
|
|
|
||||||
|
|
@ -131,6 +131,24 @@ code {
|
||||||
gap: .5em;
|
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 {
|
@media print {
|
||||||
:root {
|
:root {
|
||||||
--bg: #FFF;
|
--bg: #FFF;
|
||||||
|
|
|
||||||
5
templates/archive.html
Normal file
5
templates/archive.html
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
<h1>{{archive_h}}: {{archive_name}}</h1>
|
||||||
|
|
||||||
|
{{archive_nav}}
|
||||||
|
|
||||||
|
{{archive_posts}}
|
||||||
|
|
@ -7,9 +7,10 @@
|
||||||
<meta name="generator" content="motorino {{motorino_version}}">
|
<meta name="generator" content="motorino {{motorino_version}}">
|
||||||
<meta name="description" content="{{description_attr}}">
|
<meta name="description" content="{{description_attr}}">
|
||||||
<meta property="og:site_name" content="kmalloc.org">
|
<meta property="og:site_name" content="kmalloc.org">
|
||||||
<meta property="og:type" content="website">
|
<meta property="og:type" content="{{og_type}}">
|
||||||
<meta property="og:title" content="{{title_html}}">
|
<meta property="og:title" content="{{title_html}}">
|
||||||
<meta property="og:description" content="{{description_attr}}">
|
<meta property="og:description" content="{{description_attr}}">
|
||||||
|
{{article_meta}}
|
||||||
<meta property="og:url" content="{{doc_url}}">
|
<meta property="og:url" content="{{doc_url}}">
|
||||||
<meta property="og:image" content="{{base_url}}/og.png">
|
<meta property="og:image" content="{{base_url}}/og.png">
|
||||||
<meta property="og:image:width" content="1200">
|
<meta property="og:image:width" content="1200">
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,10 @@
|
||||||
<h1>{{post_title}}</h1>
|
<h1>{{post_title}}</h1>
|
||||||
|
|
||||||
<p>
|
{{post_summary}}
|
||||||
<time datetime="{{date}}">{{date}}</time>{{post_byline}}
|
{{post_meta}}
|
||||||
</p>
|
|
||||||
|
|
||||||
{{post_body}}
|
{{post_body}}
|
||||||
|
|
||||||
|
{{post_mastodon}}
|
||||||
|
|
||||||
|
{{post_nav}}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue