refactor: keep every text in one JSON file per language

- move the texts of each language into lang/<lang>.json and the shared data into site.json
- replace the per-language HTML fragments with one template per page type in templates/pages
- add templates/parts for the repeated service and person blocks
- move the news posts to news/
- a language lists only the pages it has, so adding one is a single file
- the generated pages are unchanged
- update the README
This commit is contained in:
squid 2026-11-12 19:59:56 +01:00
commit 21103486f8

76
site.json Normal file
View file

@ -0,0 +1,76 @@
{
"base_url": "https://kmalloc.org",
"languages": [
"en",
"it",
"es",
"de",
"fr"
],
"manifesto_version": "1.0",
"contact": "squid@kmalloc.org",
"btc": "bc1qsj5qadrzlqmfwcru4fwuqvftg833te5f9mja2c",
"home_order": [
"git",
"social",
"lists",
"chat",
"matrix",
"meet",
"mail"
],
"services": [
{
"id": "mail",
"url": "https://webmail.kmalloc.org/",
"label": "webmail"
},
{
"id": "lists",
"url": "https://lists.kmalloc.org/",
"label": "lists"
},
{
"id": "git",
"url": "https://git.kmalloc.org/",
"label": "git"
},
{
"id": "social",
"url": "https://social.kmalloc.org/",
"label": "social",
"home_url": "https://social.kmalloc.org/@squid"
},
{
"id": "chat",
"url": "https://chat.kmalloc.org/",
"label": "chat"
},
{
"id": "matrix",
"url": "https://element.kmalloc.org/",
"label": "matrix"
},
{
"id": "meet",
"url": "https://meet.kmalloc.org/",
"label": "meet"
}
],
"people": [
{
"handle": "squid",
"name": "",
"links": [
{
"label": "Mastodon",
"url": "https://social.kmalloc.org/@squid"
},
{
"label": "git",
"url": "https://git.kmalloc.org/squid"
}
]
}
]
}