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:
parent
b0c6706a90
commit
21103486f8
35 changed files with 683 additions and 712 deletions
38
README.md
38
README.md
|
|
@ -5,35 +5,35 @@ Sources of the kmalloc.org website: plain static HTML, no JavaScript, valid HTML
|
|||
## Layout
|
||||
|
||||
- `build.py` generates the site: `python3 build.py [output-dir]` (default `preview/`). Standard library only.
|
||||
- `templates/` holds the page chrome: `base.html`, `header.html`, `footer.html` and a few small fragments.
|
||||
- `site.json` holds what every language shares: the language list, contact address, Bitcoin address, manifesto version, services and people.
|
||||
- `lang/<lang>.json` holds every text of one language (`en`, `it`, `es`, `de`, `fr`): the menu, the footer and one entry per page. The texts are plain text and the build escapes them.
|
||||
- `templates/` holds the chrome (`base.html`, `header.html`, `footer.html`), one body per page type in `templates/pages/` and repeated blocks in `templates/parts/`.
|
||||
- `static/style.css` is the one stylesheet, inlined into every page.
|
||||
- `content/site.toml` holds the values shared by every page: contact address, Bitcoin address, manifesto version.
|
||||
- `content/<lang>/lang.toml` holds the chrome strings of one language (`en`, `it`, `es`, `de`, `fr`). Spanish, German and French have the manifesto only and use the short header (`templates/header-min.html`).
|
||||
- `content/<lang>/*.html` are the pages: a front matter block, then an HTML fragment.
|
||||
- `content/en/news/` holds the news posts. News are written in English only.
|
||||
- `MANIFESTO.en.md` and `MANIFESTO.it.md` are the manifesto texts, version 1.0. `MANIFESTO.es.md`, `MANIFESTO.de.md` and `MANIFESTO.fr.md` are translations of it.
|
||||
- `MANIFESTO.<lang>.md` are the manifesto texts, version 1.0. English and Italian are the sources, Spanish, German and French are translations.
|
||||
- `news/` holds the news posts, written in English only.
|
||||
- `fonts/terminess.woff2` is Terminess (Terminus), SIL Open Font License, subset to Latin.
|
||||
- `badges/` holds the official W3C badges, served from our own site.
|
||||
- `logo/` holds the shrike logo: SVG and PNG exports, `build_logo.py`, the original PNG and the favicons in `logo/web/`.
|
||||
|
||||
## Pages
|
||||
## Languages
|
||||
|
||||
A page starts with a front matter block, then the HTML fragment:
|
||||
A new language is one file, `lang/<lang>.json`, plus its name in `site.json` and a `MANIFESTO.<lang>.md`. A language lists only the pages it has: Spanish, German and French have the manifesto only, so they use the short header (`"header": "header-min"`) and the other pages are not built for them. The language links in the header list every other language that has the same page.
|
||||
|
||||
---
|
||||
id: people
|
||||
path: /people.html
|
||||
nav: people
|
||||
title: kmalloc.org: People
|
||||
description: The people behind kmalloc.org.
|
||||
---
|
||||
<h1>People</h1>
|
||||
A page entry in `lang/<lang>.json` looks like this:
|
||||
|
||||
`id` pairs a page with its translations, `nav` is the menu entry to highlight. The language links in the header list every other language that has a page with the same `id`. Placeholders such as `{{contact_shown}}` or `{{url_news}}` are replaced at build time, and an unknown placeholder stops the build.
|
||||
"people": {
|
||||
"path": "/people.html",
|
||||
"title": "kmalloc.org: People",
|
||||
"description": "The people behind kmalloc.org.",
|
||||
"intro": "Who is behind kmalloc.org.",
|
||||
"bios": { "squid": "..." }
|
||||
}
|
||||
|
||||
The page types are `home`, `manifesto`, `people`, `services` and `news`. Placeholders such as `{{intro}}` or `{{url_news}}` in `templates/pages/*.html` are replaced at build time, and an unknown placeholder stops the build.
|
||||
|
||||
## News
|
||||
|
||||
A post is a Markdown file named `YYYY-MM-DD-slug.md` in `content/en/news/`:
|
||||
A post is a Markdown file named `YYYY-MM-DD-slug.md` in `news/`:
|
||||
|
||||
---
|
||||
title: Hello
|
||||
|
|
@ -43,7 +43,7 @@ A post is a Markdown file named `YYYY-MM-DD-slug.md` in `content/en/news/`:
|
|||
|
||||
## A heading
|
||||
|
||||
The post is published at `/news/slug.html`. News are English only: the Italian pages list the same posts and link to them. The news index, the latest three posts on the home pages and an RSS 2.0 feed (`/news/feed.xml`, the latest 20 posts with full text) are built from the files. Every page links the feed in the head and shows the RSS icon in the footer. No em dashes: the build refuses them.
|
||||
The post is published at `/news/slug.html`. News are English only: the pages of the other languages list the same posts and link to them. The news index, the latest three posts on the home pages and an RSS 2.0 feed (`/news/feed.xml`, the latest 20 posts with full text) are built from the files. Every page links the feed in the head and shows the RSS icon in the footer. No em dashes: the build refuses them.
|
||||
|
||||
## Publishing
|
||||
|
||||
|
|
|
|||
313
build.py
313
build.py
|
|
@ -4,36 +4,38 @@
|
|||
Usage: build.py [output-dir] (default: preview)
|
||||
|
||||
Layout:
|
||||
templates/ page chrome: base.html, header.html, footer.html, ...
|
||||
site.json what every language shares: languages, contact, Bitcoin address, services, people
|
||||
lang/<lang>.json every text of one language: menu, footer, and one entry per page it has
|
||||
templates/ page chrome (base, header, footer), page bodies (pages/) and repeated blocks (parts/)
|
||||
static/style.css the one stylesheet, inlined into every page
|
||||
content/site.toml values shared by every page (contact, bitcoin address, manifesto version)
|
||||
content/<lang>/lang.toml the chrome strings of one language
|
||||
content/<lang>/*.html pages: front matter, then an HTML fragment
|
||||
content/en/news/*.md news posts, English only: YYYY-MM-DD-slug.md, front matter, then Markdown
|
||||
MANIFESTO.<lang>.md the manifesto, one Markdown file per language
|
||||
news/*.md news posts, English only: YYYY-MM-DD-slug.md, front matter, then Markdown
|
||||
|
||||
A page starts with a front matter block:
|
||||
---
|
||||
id: people pairs the page with its translation
|
||||
path: /people.html where it is published
|
||||
nav: people menu entry highlighted on this page
|
||||
title: ...
|
||||
description: ...
|
||||
---
|
||||
Placeholders {{name}} are replaced with values from site.toml, lang.toml and the page itself.
|
||||
An unknown placeholder stops the build."""
|
||||
import html, os, re, shutil, sys, tomllib
|
||||
from email.utils import format_datetime
|
||||
To add a language, add lang/<lang>.json and list it in site.json. A language needs only the pages it has:
|
||||
a page that is missing from lang/<lang>.json is simply not built, and its language links disappear.
|
||||
Texts in the JSON files are plain text: the build escapes them. Placeholders {{name}} in the templates are
|
||||
replaced with values from site.json, the language file and the page; an unknown placeholder stops the build."""
|
||||
import html, json, os, re, shutil, sys
|
||||
from datetime import datetime, timezone
|
||||
from email.utils import format_datetime
|
||||
from xml.sax.saxutils import escape as xml_escape
|
||||
|
||||
HERE = os.path.dirname(os.path.abspath(__file__))
|
||||
OUT = os.path.abspath(sys.argv[1] if len(sys.argv) > 1 else os.path.join(HERE, "preview"))
|
||||
LANGS = ("en", "it", "es", "de", "fr") # order of the language links
|
||||
NAV = ("home", "manifesto", "people", "services", "news")
|
||||
NEWS_ON_HOME = 3
|
||||
NEWS_IN_FEED = 20
|
||||
POST_NAME = re.compile(r"^(\d{4}-\d{2}-\d{2})-([a-z0-9]+(?:-[a-z0-9]+)*)$")
|
||||
|
||||
# Page types: menu entry to highlight and footer lead. The body is templates/pages/<id>.html.
|
||||
PAGES = {
|
||||
"home": dict(nav="home", lead="home"),
|
||||
"manifesto": dict(nav="manifesto", lead="back"),
|
||||
"people": dict(nav="people", lead="back"),
|
||||
"services": dict(nav="services", lead="back"),
|
||||
"news": dict(nav="news", lead="back"),
|
||||
}
|
||||
NAV = ("home", "manifesto", "people", "services", "news")
|
||||
|
||||
# Files copied as they are: published name -> source.
|
||||
ASSETS = {
|
||||
"favicon.svg": "logo/svg/favicon-auto.svg",
|
||||
|
|
@ -63,9 +65,15 @@ def write(rel, text):
|
|||
f.write(text)
|
||||
|
||||
|
||||
def toml(*parts):
|
||||
with open(os.path.join(HERE, *parts), "rb") as f:
|
||||
return tomllib.load(f)
|
||||
def load_json(*parts):
|
||||
try:
|
||||
return json.loads(read(*parts))
|
||||
except ValueError as e:
|
||||
fail(f"{'/'.join(parts)}: {e}")
|
||||
|
||||
|
||||
def esc(text):
|
||||
return html.escape(text, quote=False)
|
||||
|
||||
|
||||
def parse(text, name):
|
||||
|
|
@ -186,41 +194,29 @@ def md_to_html(md):
|
|||
|
||||
# ---------------------------------------------------------------- site model
|
||||
|
||||
def load_pages(lang):
|
||||
"""Pages of one language: static pages from content/<lang>/*.html and posts from content/<lang>/news/*.md."""
|
||||
pages = []
|
||||
folder = os.path.join(HERE, "content", lang)
|
||||
for fn in sorted(os.listdir(folder)):
|
||||
if fn.endswith(".html"):
|
||||
meta, body = parse(read("content", lang, fn), f"content/{lang}/{fn}")
|
||||
for key in ("id", "path", "nav", "title", "description"):
|
||||
if key not in meta:
|
||||
fail(f"content/{lang}/{fn}: front matter lacks '{key}'")
|
||||
if meta["nav"] not in NAV:
|
||||
fail(f"content/{lang}/{fn}: unknown nav '{meta['nav']}'")
|
||||
pages.append(dict(meta, lang=lang, kind="page", body=body, src=f"content/{lang}/{fn}"))
|
||||
news_dir = os.path.join(folder, "news")
|
||||
if os.path.isdir(news_dir):
|
||||
prefix = "" if lang == "en" else "/it"
|
||||
for fn in sorted(os.listdir(news_dir)):
|
||||
if not fn.endswith(".md"):
|
||||
continue
|
||||
m = POST_NAME.match(fn[:-3])
|
||||
if not m:
|
||||
fail(f"content/{lang}/news/{fn}: name must be YYYY-MM-DD-slug.md")
|
||||
src = f"content/{lang}/news/{fn}"
|
||||
meta, body = parse(read("content", lang, "news", fn), src)
|
||||
if "title" not in meta:
|
||||
fail(f"{src}: front matter lacks 'title'")
|
||||
if "—" in body or "—" in meta["title"]:
|
||||
fail(f"{src}: no em dashes, please")
|
||||
pages.append(dict(meta, lang=lang, kind="post", id="news/" + fn[:-3], date=m.group(1), nav="news",
|
||||
path=f"{prefix}/news/{m.group(2)}.html", body=body, src=src,
|
||||
description=meta.get("summary", meta["title"])))
|
||||
return pages
|
||||
def load_posts():
|
||||
"""News posts from news/*.md (English only)."""
|
||||
posts = []
|
||||
folder = os.path.join(HERE, "news")
|
||||
for fn in sorted(os.listdir(folder)) if os.path.isdir(folder) else []:
|
||||
if not fn.endswith(".md"):
|
||||
continue
|
||||
m = POST_NAME.match(fn[:-3])
|
||||
if not m:
|
||||
fail(f"news/{fn}: name must be YYYY-MM-DD-slug.md")
|
||||
src = f"news/{fn}"
|
||||
meta, text = parse(read("news", fn), src)
|
||||
if "title" not in meta:
|
||||
fail(f"{src}: front matter lacks 'title'")
|
||||
if "\u2014" in text or "\u2014" in meta["title"]:
|
||||
fail(f"{src}: no em dashes, please")
|
||||
posts.append(dict(lang="en", kind="post", id="news/" + fn[:-3], date=m.group(1), nav="news",
|
||||
path=f"/news/{m.group(2)}.html", body=text, src=src, title=meta["title"],
|
||||
summary=meta.get("summary", ""), description=meta.get("summary") or meta["title"]))
|
||||
return sorted(posts, key=lambda p: p["date"], reverse=True)
|
||||
|
||||
|
||||
def rss(lang, st, site, all_posts):
|
||||
def rss(L, site, all_posts):
|
||||
"""RSS 2.0 feed of the news (English only): the latest posts, full text, absolute links."""
|
||||
base = site["base_url"]
|
||||
posts = all_posts[:NEWS_IN_FEED]
|
||||
|
|
@ -239,14 +235,14 @@ def rss(lang, st, site, all_posts):
|
|||
</item>
|
||||
""")
|
||||
built = f"<lastBuildDate>{stamp(posts[0]['date'])}</lastBuildDate>\n" if posts else ""
|
||||
url = f"{base}{st['url_news']}"
|
||||
url = f"{base}{site['news_url']}"
|
||||
return f"""<?xml version="1.0" encoding="utf-8"?>
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<title>kmalloc.org: {xml_escape(st["nav_news"])}</title>
|
||||
<title>kmalloc.org: {xml_escape(L["nav"]["news"])}</title>
|
||||
<link>{url}</link>
|
||||
<description>{xml_escape(st["news_p"])}</description>
|
||||
<language>{lang}</language>
|
||||
<description>{xml_escape(L["news_p"])}</description>
|
||||
<language>{L["lang"]}</language>
|
||||
{built}<atom:link href="{url}feed.xml" rel="self" type="application/rss+xml"/>
|
||||
{"".join(items)}</channel>
|
||||
</rss>
|
||||
|
|
@ -254,99 +250,144 @@ def rss(lang, st, site, all_posts):
|
|||
|
||||
|
||||
def build():
|
||||
site = load_json("site.json")
|
||||
langs_order = site["languages"]
|
||||
langs = {l: load_json("lang", l + ".json") for l in langs_order}
|
||||
css = read("static", "style.css").strip("\n")
|
||||
tpl = {n[:-5]: read("templates", n) for n in os.listdir(os.path.join(HERE, "templates")) if n.endswith(".html")}
|
||||
site = toml("content", "site.toml")
|
||||
site["contact_shown"] = site["contact"].replace("@", " (at) ") # no mailto link, against address harvesters
|
||||
strings = {lang: toml("content", lang, "lang.toml") for lang in LANGS}
|
||||
pages = {lang: load_pages(lang) for lang in LANGS}
|
||||
by_id = {(p["id"], p["lang"]): p for lang in LANGS for p in pages[lang]}
|
||||
tpl = {}
|
||||
for root, _, files in os.walk(os.path.join(HERE, "templates")):
|
||||
for fn in files:
|
||||
if fn.endswith(".html"):
|
||||
key = os.path.relpath(os.path.join(root, fn), os.path.join(HERE, "templates"))[:-5]
|
||||
tpl[key] = read("templates", key + ".html")
|
||||
shared = {k: v for k, v in site.items() if isinstance(v, str)}
|
||||
shared["contact_shown"] = site["contact"].replace("@", " (at) ") # no mailto link, against address harvesters
|
||||
svc = {s["id"]: s for s in site["services"]}
|
||||
|
||||
# Manifesto: the user's own Markdown files, rendered once per language.
|
||||
pages = []
|
||||
for lang in langs_order:
|
||||
for pid, spec in PAGES.items():
|
||||
data = langs[lang]["pages"].get(pid)
|
||||
if data:
|
||||
pages.append(dict(lang=lang, kind="page", id=pid, nav=spec["nav"], lead=spec["lead"], path=data["path"],
|
||||
title=data["title"], description=data["description"], data=data, src=f"lang/{lang}.json: {pid}"))
|
||||
posts = load_posts()
|
||||
pages += posts
|
||||
by_id = {(p["id"], p["lang"]): p for p in pages}
|
||||
if ("news", "en") not in by_id:
|
||||
fail("lang/en.json needs a 'news' page")
|
||||
site["news_url"] = by_id[("news", "en")]["path"]
|
||||
|
||||
def url_for(lang, pid):
|
||||
"""Page in this language, else the English one."""
|
||||
return (by_id.get((pid, lang)) or by_id[(pid, "en")])["path"]
|
||||
|
||||
# Manifesto: one Markdown file per language that has the page.
|
||||
manifesto = {}
|
||||
for lang in LANGS:
|
||||
title, toc, body = md_to_html(no_em_dash(read(f"MANIFESTO.{lang}.md")))
|
||||
manifesto[lang] = dict(
|
||||
manifesto_title=html.escape(title),
|
||||
manifesto_toc="\n".join(f'<li><a href="#{sl}">{inline(h)}</a></li>' for sl, h in toc),
|
||||
manifesto_body=body)
|
||||
|
||||
# News are written in English only; every language lists the same posts.
|
||||
posts_en = sorted((p for p in pages["en"] if p["kind"] == "post"), key=lambda p: p["date"], reverse=True)
|
||||
for lang in langs_order:
|
||||
if ("manifesto", lang) in by_id:
|
||||
title, toc, md_html = md_to_html(no_em_dash(read(f"MANIFESTO.{lang}.md")))
|
||||
manifesto[lang] = dict(
|
||||
manifesto_title=html.escape(title),
|
||||
manifesto_toc="\n".join(f'<li><a href="#{sl}">{inline(h)}</a></li>' for sl, h in toc),
|
||||
manifesto_body=md_html)
|
||||
|
||||
def news_lists(lang):
|
||||
posts = posts_en
|
||||
mark = "" if lang == "en" else ' hreflang="en" lang="en"'
|
||||
lines = []
|
||||
for p in posts:
|
||||
line = f'<li><time datetime="{p["date"]}">{p["date"]}</time> <a href="{p["path"]}"{mark}>{esc(p["title"])}</a>'
|
||||
if p["summary"]:
|
||||
line += ": " + esc(p["summary"])
|
||||
lines.append(line + "</li>")
|
||||
full = "<ul>\n" + "\n".join(lines) + "\n</ul>" if posts else f"<p>\n{esc(langs[lang].get('news_empty', ''))}\n</p>"
|
||||
short = "\n".join(f'<li><time datetime="{x["date"]}">{x["date"]}</time> <a href="{x["path"]}"{mark}>{esc(x["title"])}</a></li>'
|
||||
for x in posts[:NEWS_ON_HOME])
|
||||
return full, short
|
||||
|
||||
def li(p):
|
||||
line = f'<li><time datetime="{p["date"]}">{p["date"]}</time> <a href="{p["path"]}"{mark}>{html.escape(p["title"], quote=False)}</a>'
|
||||
if p.get("summary"):
|
||||
line += ": " + html.escape(p["summary"], quote=False)
|
||||
return line + "</li>"
|
||||
items = "\n".join(li(p) for p in posts)
|
||||
full = f"<ul>\n{items}\n</ul>" if posts else f"<p>\n{strings[lang].get('news_empty', '')}\n</p>"
|
||||
return full, items, posts[:NEWS_ON_HOME], mark
|
||||
for p in pages:
|
||||
lang = p["lang"]
|
||||
L = langs[lang]
|
||||
name = p["src"]
|
||||
ctx = dict(shared)
|
||||
ctx.update({k: esc(v) for k, v in L.items() if isinstance(v, str)})
|
||||
ctx["lang"] = lang
|
||||
for k, label in L["nav"].items():
|
||||
ctx["nav_" + k] = esc(label)
|
||||
for k in NAV[1:]:
|
||||
ctx["url_" + k] = url_for(lang, k)
|
||||
ctx["version_lc"] = esc(L["version"].lower())
|
||||
data = p.get("data", {})
|
||||
ctx.update({k: esc(v) for k, v in data.items() if isinstance(v, str)})
|
||||
page_title = p["title"] if p["kind"] == "page" else "kmalloc.org: " + p["title"]
|
||||
ctx.update(css=css, path=p["path"], title_html=html.escape(page_title), post_title=html.escape(p["title"]),
|
||||
description_attr=html.escape(p["description"], quote=True), doc_url=site["base_url"] + p["path"],
|
||||
date=p.get("date", ""))
|
||||
for k in NAV:
|
||||
ctx["cur_" + k] = ' aria-current="page"' if p["nav"] == k else ""
|
||||
|
||||
news = {lang: news_lists(lang) for lang in LANGS}
|
||||
# Every other language that has this page; a page without translation (news) points to the other home.
|
||||
twins = {l: by_id[(p["id"], l)] for l in langs_order if l != lang and (p["id"], l) in by_id}
|
||||
if not twins:
|
||||
fallback = "it" if lang == "en" else "en"
|
||||
twins = {fallback: by_id[("home", fallback)]}
|
||||
switch = data.get("switch", {})
|
||||
ctx["lang_links"] = "\n·\n".join(
|
||||
f'<a href="{switch.get(l, t["path"])}" hreflang="{l}" lang="{l}">{esc(langs[l]["lang_name"])}</a>' for l, t in twins.items())
|
||||
have = {l: by_id[(p["id"], l)] for l in langs_order if (p["id"], l) in by_id}
|
||||
ctx["alt_links"] = "\n".join(f'<link rel="alternate" hreflang="{l}" href="{q["path"]}">' for l, q in have.items()) if len(have) > 1 else ""
|
||||
|
||||
for lang in LANGS:
|
||||
st = strings[lang]
|
||||
for p in pages[lang]:
|
||||
name = p["src"]
|
||||
ctx = dict(site, **st, **manifesto[lang])
|
||||
page_title = p["title"] if p["kind"] == "page" else "kmalloc.org: " + p["title"]
|
||||
ctx.update(css=css, title=p["title"], description=p["description"], path=p["path"],
|
||||
title_html=html.escape(page_title), post_title=html.escape(p["title"]), description_attr=html.escape(p["description"], quote=True),
|
||||
doc_url=site["base_url"] + p["path"], date=p.get("date", ""))
|
||||
for k in NAV:
|
||||
ctx["cur_" + k] = ' aria-current="page"' if p["nav"] == k else ""
|
||||
# Every other language that has this page; a page without translation (news) points to the other home.
|
||||
twins = {l: by_id[(p["id"], l)] for l in LANGS if l != lang and (p["id"], l) in by_id}
|
||||
if not twins:
|
||||
fallback = "it" if lang == "en" else "en"
|
||||
twins = {fallback: by_id[("home", fallback)]}
|
||||
links = []
|
||||
for l, t in twins.items():
|
||||
href = p["switch"] if p.get("switch") and l == "en" else t["path"]
|
||||
links.append(f'<a href="{href}" hreflang="{l}" lang="{l}">{strings[l]["lang_name"]}</a>')
|
||||
ctx["lang_links"] = "\n·\n".join(links)
|
||||
have = {l: by_id[(p["id"], l)] for l in LANGS if (p["id"], l) in by_id}
|
||||
ctx["alt_links"] = "\n".join(f'<link rel="alternate" hreflang="{l}" href="{q["path"]}">' for l, q in have.items()) if len(have) > 1 else ""
|
||||
if p["kind"] == "post":
|
||||
_, _, post_html = md_to_html(p["body"])
|
||||
ctx["post_body"] = post_html
|
||||
content = render(tpl["news-post"], ctx, "templates/news-post.html")
|
||||
lead = "news"
|
||||
else:
|
||||
body_tpl = tpl["pages/" + p["id"]]
|
||||
if "{{news_list}}" in body_tpl:
|
||||
ctx["news_list"] = news_lists(lang)[0]
|
||||
if "{{latest_news}}" in body_tpl:
|
||||
short = news_lists(lang)[1]
|
||||
ctx["latest_news"] = render(tpl["latest-news"], dict(ctx, news_items=short), "templates/latest-news.html") if short else ""
|
||||
if p["id"] == "home":
|
||||
ctx["services_list"] = "\n".join(
|
||||
f'<li><a href="{svc[i].get("home_url", svc[i]["url"])}">{svc[i]["label"]}</a>: {esc(data["services"][i])}</li>' for i in site["home_order"])
|
||||
elif p["id"] == "services":
|
||||
ctx["service_sections"] = "".join(
|
||||
render(tpl["parts/service-section"], dict(ctx, id=s["id"], name=esc(data["items"][s["id"]]["name"]),
|
||||
text=esc(data["items"][s["id"]]["text"]), url=s["url"]),
|
||||
"templates/parts/service-section.html") for s in site["services"])
|
||||
elif p["id"] == "people":
|
||||
cards = []
|
||||
for person in site["people"]:
|
||||
handle, nm = person["handle"], person.get("name", "")
|
||||
links = "\n".join(f'<li><a href="{x["url"]}">{esc(x["label"])}</a></li>' for x in person["links"])
|
||||
cards.append(render(tpl["parts/person-card"], dict(
|
||||
ctx, handle=esc(handle), title=(esc(nm) + " (" + esc(handle) + ")") if nm else esc(handle),
|
||||
bio=esc(data["bios"][handle]), links=links), "templates/parts/person-card.html"))
|
||||
ctx["people_cards"] = "".join(cards)
|
||||
elif p["id"] == "manifesto":
|
||||
ctx.update(manifesto[lang])
|
||||
ctx["note_block"] = f'<p>\n{esc(data["note"])}\n</p>\n\n' if data.get("note") else ""
|
||||
content = render(body_tpl.strip("\n") + "\n", ctx, f"templates/pages/{p['id']}.html")
|
||||
lead = p["lead"]
|
||||
ctx["content"] = content
|
||||
ctx["lead"] = render(tpl["lead-" + lead], ctx, f"templates/lead-{lead}.html")
|
||||
ctx["feed"] = render(tpl["feed"], ctx, "templates/feed.html")
|
||||
ctx["badges"] = render(tpl["badges"], dict(ctx, doc_q=ctx["doc_url"].replace(":", "%3A").replace("/", "%2F")), "templates/badges.html")
|
||||
ctx["header"] = render(tpl[L.get("header", "header")], ctx, "templates/header.html")
|
||||
ctx["footer"] = render(tpl["footer"], ctx, "templates/footer.html")
|
||||
rel = p["path"].lstrip("/")
|
||||
write(rel + "index.html" if rel == "" or rel.endswith("/") else rel, render(tpl["base"], ctx, "templates/base.html"))
|
||||
|
||||
full, items, latest, mark = news[lang]
|
||||
if "{{news_list}}" in p["body"]:
|
||||
ctx["news_list"] = full
|
||||
if "{{latest_news}}" in p["body"]:
|
||||
ctx["latest_news"] = render(tpl["latest-news"], dict(ctx, news_items="\n".join(
|
||||
f'<li><time datetime="{x["date"]}">{x["date"]}</time> <a href="{x["path"]}"{mark}>{html.escape(x["title"], quote=False)}</a></li>'
|
||||
for x in latest)), "templates/latest-news.html") if latest else ""
|
||||
|
||||
if p["kind"] == "post":
|
||||
_, _, post_html = md_to_html(p["body"])
|
||||
ctx["post_body"] = post_html
|
||||
ctx["content"] = render(tpl["news-post"], ctx, "templates/news-post.html")
|
||||
lead = "news"
|
||||
else:
|
||||
ctx["content"] = render(p["body"].strip("\n") + "\n", ctx, name)
|
||||
lead = p.get("lead", "back")
|
||||
ctx["lead"] = render(tpl["lead-" + lead], ctx, f"templates/lead-{lead}.html")
|
||||
ctx["feed"] = render(tpl["feed"], ctx, "templates/feed.html")
|
||||
ctx["badges"] = render(tpl["badges"], dict(ctx, doc_q=ctx["doc_url"].replace(":", "%3A").replace("/", "%2F")),
|
||||
"templates/badges.html")
|
||||
ctx["header"] = render(tpl[st.get("header", "header")], ctx, "templates/header.html")
|
||||
ctx["footer"] = render(tpl["footer"], ctx, "templates/footer.html")
|
||||
rel = p["path"].lstrip("/")
|
||||
write(rel + "index.html" if rel == "" or rel.endswith("/") else rel, render(tpl["base"], ctx, "templates/base.html"))
|
||||
|
||||
write("news/feed.xml", rss("en", strings["en"], site, posts_en))
|
||||
write(site["news_url"].lstrip("/") + "feed.xml", rss(langs["en"], site, posts))
|
||||
|
||||
for dest, src in ASSETS.items():
|
||||
target = os.path.join(OUT, dest)
|
||||
os.makedirs(os.path.dirname(target), exist_ok=True)
|
||||
shutil.copy(os.path.join(HERE, src), target)
|
||||
write("robots.txt", "User-agent: *\nDisallow: /\n")
|
||||
count = sum(len(v) for v in pages.values())
|
||||
print(f"built {count} pages into {OUT}")
|
||||
print(f"built {len(pages)} pages into {OUT}")
|
||||
|
||||
|
||||
build()
|
||||
|
|
|
|||
|
|
@ -1,15 +0,0 @@
|
|||
# Chrome strings, de. Manifesto only: this language has no other pages, so it uses the short header.
|
||||
lang = "de"
|
||||
lang_name = "Deutsch"
|
||||
header = "header-min"
|
||||
home_link = "/?lang=en"
|
||||
url_manifesto = "/de/manifesto.html"
|
||||
url_news = "/news/"
|
||||
nav_news = "News"
|
||||
nav_manifesto = "Manifest"
|
||||
sections = "Bereiche"
|
||||
nojs = "Diese Seite verwendet kein JavaScript, keine Cookies und keine Tracker."
|
||||
back = "kmalloc.org"
|
||||
version = "Version"
|
||||
toc = "Inhalt"
|
||||
translation_note = "Übersetzung der Version 1.0 nach den englischen und italienischen Texten."
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
---
|
||||
id: manifesto
|
||||
path: /de/manifesto.html
|
||||
nav: manifesto
|
||||
title: kmalloc.org: Manifest
|
||||
description: Das Manifest von kmalloc.org: freie Software, Privatsphäre, ein offenes Internet, Würde bei der Arbeit.
|
||||
---
|
||||
<h1>{{manifesto_title}}</h1>
|
||||
|
||||
<p>
|
||||
<strong>{{version}} {{manifesto_version}}</strong>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
{{translation_note}}
|
||||
</p>
|
||||
|
||||
<h2>{{toc}}</h2>
|
||||
|
||||
<ul>
|
||||
{{manifesto_toc}}
|
||||
</ul>
|
||||
|
||||
{{manifesto_body}}
|
||||
|
|
@ -1,58 +0,0 @@
|
|||
---
|
||||
id: home
|
||||
path: /
|
||||
nav: home
|
||||
lead: home
|
||||
title: kmalloc.org: Technology. Freedom. Dissent.
|
||||
description: kmalloc.org is an independent hacker space that promotes free software, privacy and an open Internet.
|
||||
---
|
||||
<p>
|
||||
<img class="logo" src="/logo-auto.svg" alt="kmalloc" width="112">
|
||||
</p>
|
||||
|
||||
<h1 class="hero">Technology.<br>Freedom.<br>Dissent.</h1>
|
||||
|
||||
<p>
|
||||
<strong>kmalloc.org is a hacker, antifascist, ethical space.</strong>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
kmalloc.org is an independent hacker space that promotes free software, privacy and an open Internet, defending freedom of thought, the dignity of work and the right of people not to be controlled, exploited or subordinated to arbitrary powers.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Allocate freedom.</strong>
|
||||
</p>
|
||||
|
||||
<h2 id="manifesto">Manifesto</h2>
|
||||
|
||||
<p>
|
||||
What we believe, in twelve points and a few commitments:
|
||||
<a href="{{url_manifesto}}">read the manifesto</a> (version {{manifesto_version}}).
|
||||
</p>
|
||||
|
||||
<h2 id="people">People</h2>
|
||||
|
||||
<p>
|
||||
Who is behind kmalloc.org:
|
||||
<a href="{{url_people}}">meet the people</a>.
|
||||
</p>
|
||||
|
||||
<h2 id="services">Services</h2>
|
||||
|
||||
<p>
|
||||
Run on our own server, with free software. Accounts are created by hand.
|
||||
<a href="{{url_services}}">get an account</a>.
|
||||
</p>
|
||||
|
||||
<ul>
|
||||
<li><a href="https://git.kmalloc.org/">git</a>: code hosting (Forgejo)</li>
|
||||
<li><a href="https://social.kmalloc.org/@squid">social</a>: Mastodon, accounts on approval</li>
|
||||
<li><a href="https://lists.kmalloc.org/">lists</a>: mailing lists (Mailman 3)</li>
|
||||
<li><a href="https://chat.kmalloc.org/">chat</a>: XMPP, web client</li>
|
||||
<li><a href="https://element.kmalloc.org/">matrix</a>: Matrix, Element web client</li>
|
||||
<li><a href="https://meet.kmalloc.org/">meet</a>: video conferences (Jitsi Meet)</li>
|
||||
<li><a href="https://webmail.kmalloc.org/">webmail</a>: email on our own server</li>
|
||||
</ul>
|
||||
|
||||
{{latest_news}}
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
# Chrome strings, en.
|
||||
lang = "en"
|
||||
lang_name = "English"
|
||||
home_link = "/?lang=en"
|
||||
url_manifesto = "/manifesto.html"
|
||||
url_people = "/people.html"
|
||||
url_services = "/services.html"
|
||||
url_news = "/news/"
|
||||
nav_manifesto = "Manifesto"
|
||||
nav_people = "People"
|
||||
nav_services = "Services"
|
||||
nav_news = "News"
|
||||
sections = "Sections"
|
||||
nojs = "This page uses no JavaScript, cookies or trackers."
|
||||
back = "home"
|
||||
version = "Version"
|
||||
toc = "Contents"
|
||||
news_p = "Updates from kmalloc.org."
|
||||
news_all = "all news"
|
||||
news_empty = "No news yet."
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
---
|
||||
id: manifesto
|
||||
path: /manifesto.html
|
||||
nav: manifesto
|
||||
title: kmalloc.org: Manifesto
|
||||
description: The kmalloc.org manifesto: free software, privacy, an open Internet, dignity at work.
|
||||
---
|
||||
<h1>{{manifesto_title}}</h1>
|
||||
|
||||
<p>
|
||||
<strong>{{version}} {{manifesto_version}}</strong>
|
||||
</p>
|
||||
|
||||
<h2>{{toc}}</h2>
|
||||
|
||||
<ul>
|
||||
{{manifesto_toc}}
|
||||
</ul>
|
||||
|
||||
{{manifesto_body}}
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
---
|
||||
id: news
|
||||
path: /news/
|
||||
nav: news
|
||||
title: kmalloc.org: News
|
||||
description: Updates from kmalloc.org.
|
||||
---
|
||||
<h1>News</h1>
|
||||
|
||||
<p>
|
||||
Updates from kmalloc.org.
|
||||
</p>
|
||||
|
||||
{{news_list}}
|
||||
|
||||
<p>
|
||||
<a href="{{url_news}}feed.xml">RSS feed</a>
|
||||
</p>
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
---
|
||||
id: people
|
||||
path: /people.html
|
||||
nav: people
|
||||
title: kmalloc.org: People
|
||||
description: The people behind kmalloc.org.
|
||||
---
|
||||
<h1>People</h1>
|
||||
|
||||
<p>
|
||||
Who is behind kmalloc.org.
|
||||
</p>
|
||||
|
||||
<h2 id="squid">squid</h2>
|
||||
|
||||
<p>
|
||||
I'm squid. I run kmalloc.org, write code and maintain the services on this site. I have been into computers since I was ten, when I got an IBM PS/2 with a 486DX and played Gorilla, a QBasic game: ever since, I have been taking things apart to understand how they work. Outside of work: retro computing, science fiction and extreme metal.
|
||||
</p>
|
||||
|
||||
<ul>
|
||||
<li><a href="https://social.kmalloc.org/@squid">Mastodon</a></li>
|
||||
<li><a href="https://git.kmalloc.org/squid">git</a></li>
|
||||
</ul>
|
||||
|
|
@ -1,83 +0,0 @@
|
|||
---
|
||||
id: services
|
||||
path: /services.html
|
||||
nav: services
|
||||
title: kmalloc.org: Services
|
||||
description: The services run by kmalloc.org: email, git, Mastodon, XMPP, Matrix, mailing lists and video conferences. Free, by request.
|
||||
---
|
||||
<h1>Services</h1>
|
||||
|
||||
<p>
|
||||
These services run on our own server, with free software, for people who want an alternative to the big platforms.
|
||||
</p>
|
||||
|
||||
<h2 id="account">Get an account</h2>
|
||||
|
||||
<p>
|
||||
The services are free of charge. To ask for an account, write to
|
||||
<strong>{{contact_shown}}</strong>
|
||||
(replace (at) with @),
|
||||
telling us which services you want and the username you would like.
|
||||
</p>
|
||||
|
||||
<h2 id="mail">Email</h2>
|
||||
|
||||
<p>
|
||||
An address @kmalloc.org on our own mail server, with webmail and support for any standard mail client. IMAP: mail.kmalloc.org, port 993 (TLS). SMTP submission: mail.kmalloc.org, port 465 (TLS). Outgoing mail is signed with DKIM and protected by SPF and DMARC.
|
||||
<a href="https://webmail.kmalloc.org/">open</a>.
|
||||
</p>
|
||||
|
||||
<h2 id="lists">Mailing lists</h2>
|
||||
|
||||
<p>
|
||||
Mailing lists with web archives (Mailman 3). Lists live under @lists.kmalloc.org. If you need one, ask.
|
||||
<a href="https://lists.kmalloc.org/">open</a>.
|
||||
</p>
|
||||
|
||||
<h2 id="git">Git</h2>
|
||||
|
||||
<p>
|
||||
Code hosting with Forgejo: repositories, issues and pull requests. Git over SSH uses port 2222. Reading public repositories needs no account.
|
||||
<a href="https://git.kmalloc.org/">open</a>.
|
||||
</p>
|
||||
|
||||
<h2 id="social">Mastodon</h2>
|
||||
|
||||
<p>
|
||||
A Mastodon server. Your address is @name@social.kmalloc.org. You can ask for an account on the site itself: requests are approved by hand.
|
||||
<a href="https://social.kmalloc.org/">open</a>.
|
||||
</p>
|
||||
|
||||
<h2 id="chat">XMPP chat</h2>
|
||||
|
||||
<p>
|
||||
Instant messaging with XMPP: address name@kmalloc.org, group rooms on conference.kmalloc.org, file sharing, and audio and video calls through our own TURN server. Use the web client or any XMPP app (server kmalloc.org, port 5222).
|
||||
<a href="https://chat.kmalloc.org/">open</a>.
|
||||
</p>
|
||||
|
||||
<h2 id="matrix">Matrix</h2>
|
||||
|
||||
<p>
|
||||
A Matrix homeserver: address @name:kmalloc.org. Use the Element web client or any Matrix app with homeserver matrix.kmalloc.org.
|
||||
<a href="https://element.kmalloc.org/">open</a>.
|
||||
</p>
|
||||
|
||||
<h2 id="meet">Video conferences</h2>
|
||||
|
||||
<p>
|
||||
Video conferences with Jitsi Meet. Anyone with the link can join a room; creating a room needs an account.
|
||||
<a href="https://meet.kmalloc.org/">open</a>.
|
||||
</p>
|
||||
|
||||
<h2 id="donate">Support kmalloc.org</h2>
|
||||
|
||||
<p>
|
||||
Donations are welcome and help keep the server running. Bitcoin address:
|
||||
<a href="bitcoin:{{btc}}"><code>{{btc}}</code></a>
|
||||
</p>
|
||||
|
||||
<h2 id="terms">Good to know</h2>
|
||||
|
||||
<p>
|
||||
Everything is run by one person on one server, with nightly encrypted backups and no guarantees of availability. Be respectful: the manifesto explains what we stand for.
|
||||
</p>
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
# Chrome strings, es. Manifesto only: this language has no other pages, so it uses the short header.
|
||||
lang = "es"
|
||||
lang_name = "Español"
|
||||
header = "header-min"
|
||||
home_link = "/?lang=en"
|
||||
url_manifesto = "/es/manifesto.html"
|
||||
url_news = "/news/"
|
||||
nav_news = "News"
|
||||
nav_manifesto = "Manifiesto"
|
||||
sections = "Secciones"
|
||||
nojs = "Esta página no usa JavaScript, cookies ni rastreadores."
|
||||
back = "kmalloc.org"
|
||||
version = "Versión"
|
||||
toc = "Índice"
|
||||
translation_note = "Traducción de la versión 1.0 a partir de los textos en inglés y en italiano."
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
---
|
||||
id: manifesto
|
||||
path: /es/manifesto.html
|
||||
nav: manifesto
|
||||
title: kmalloc.org: Manifiesto
|
||||
description: El manifiesto de kmalloc.org: software libre, privacidad, una Internet abierta, dignidad en el trabajo.
|
||||
---
|
||||
<h1>{{manifesto_title}}</h1>
|
||||
|
||||
<p>
|
||||
<strong>{{version}} {{manifesto_version}}</strong>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
{{translation_note}}
|
||||
</p>
|
||||
|
||||
<h2>{{toc}}</h2>
|
||||
|
||||
<ul>
|
||||
{{manifesto_toc}}
|
||||
</ul>
|
||||
|
||||
{{manifesto_body}}
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
# Chrome strings, fr. Manifesto only: this language has no other pages, so it uses the short header.
|
||||
lang = "fr"
|
||||
lang_name = "Français"
|
||||
header = "header-min"
|
||||
home_link = "/?lang=en"
|
||||
url_manifesto = "/fr/manifesto.html"
|
||||
url_news = "/news/"
|
||||
nav_news = "News"
|
||||
nav_manifesto = "Manifeste"
|
||||
sections = "Sections"
|
||||
nojs = "Cette page n'utilise ni JavaScript, ni cookies, ni traceurs."
|
||||
back = "kmalloc.org"
|
||||
version = "Version"
|
||||
toc = "Sommaire"
|
||||
translation_note = "Traduction de la version 1.0 à partir des textes anglais et italien."
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
---
|
||||
id: manifesto
|
||||
path: /fr/manifesto.html
|
||||
nav: manifesto
|
||||
title: kmalloc.org: Manifeste
|
||||
description: Le manifeste de kmalloc.org: logiciel libre, vie privée, un Internet ouvert, dignité au travail.
|
||||
---
|
||||
<h1>{{manifesto_title}}</h1>
|
||||
|
||||
<p>
|
||||
<strong>{{version}} {{manifesto_version}}</strong>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
{{translation_note}}
|
||||
</p>
|
||||
|
||||
<h2>{{toc}}</h2>
|
||||
|
||||
<ul>
|
||||
{{manifesto_toc}}
|
||||
</ul>
|
||||
|
||||
{{manifesto_body}}
|
||||
|
|
@ -1,59 +0,0 @@
|
|||
---
|
||||
id: home
|
||||
path: /it/
|
||||
nav: home
|
||||
lead: home
|
||||
title: kmalloc.org: Technology. Freedom. Dissent.
|
||||
description: kmalloc.org è uno spazio hacker indipendente che promuove il software libero, la privacy e un Internet aperto.
|
||||
switch: /?lang=en
|
||||
---
|
||||
<p>
|
||||
<img class="logo" src="/logo-auto.svg" alt="kmalloc" width="112">
|
||||
</p>
|
||||
|
||||
<h1 class="hero">Technology.<br>Freedom.<br>Dissent.</h1>
|
||||
|
||||
<p>
|
||||
<strong>kmalloc.org è uno spazio hacker, antifascista, etico.</strong>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
kmalloc.org è uno spazio hacker indipendente che promuove il software libero, la privacy e un Internet aperto, difendendo la libertà di pensiero, la dignità del lavoro e il diritto delle persone a non essere controllate, sfruttate o subordinate a poteri arbitrari.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Allocate freedom.</strong>
|
||||
</p>
|
||||
|
||||
<h2 id="manifesto">Manifesto</h2>
|
||||
|
||||
<p>
|
||||
Quello in cui crediamo, in dodici punti e qualche impegno:
|
||||
<a href="{{url_manifesto}}">leggi il manifesto</a> (versione {{manifesto_version}}).
|
||||
</p>
|
||||
|
||||
<h2 id="people">Persone</h2>
|
||||
|
||||
<p>
|
||||
Chi c'è dietro kmalloc.org:
|
||||
<a href="{{url_people}}">conosci le persone</a>.
|
||||
</p>
|
||||
|
||||
<h2 id="services">Servizi</h2>
|
||||
|
||||
<p>
|
||||
Girano sul nostro server, con software libero. Gli account si creano a mano.
|
||||
<a href="{{url_services}}">richiedi un account</a>.
|
||||
</p>
|
||||
|
||||
<ul>
|
||||
<li><a href="https://git.kmalloc.org/">git</a>: repository di codice (Forgejo)</li>
|
||||
<li><a href="https://social.kmalloc.org/@squid">social</a>: Mastodon, account su approvazione</li>
|
||||
<li><a href="https://lists.kmalloc.org/">lists</a>: liste di posta (Mailman 3)</li>
|
||||
<li><a href="https://chat.kmalloc.org/">chat</a>: XMPP, client web</li>
|
||||
<li><a href="https://element.kmalloc.org/">matrix</a>: Matrix, client web Element</li>
|
||||
<li><a href="https://meet.kmalloc.org/">meet</a>: videoconferenze (Jitsi Meet)</li>
|
||||
<li><a href="https://webmail.kmalloc.org/">webmail</a>: posta sul nostro server</li>
|
||||
</ul>
|
||||
|
||||
{{latest_news}}
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
# Chrome strings, it.
|
||||
lang = "it"
|
||||
lang_name = "Italiano"
|
||||
home_link = "/it/"
|
||||
url_manifesto = "/it/manifesto.html"
|
||||
url_people = "/it/persone.html"
|
||||
url_services = "/it/servizi.html"
|
||||
url_news = "/news/"
|
||||
nav_manifesto = "Manifesto"
|
||||
nav_people = "Persone"
|
||||
nav_services = "Servizi"
|
||||
nav_news = "News"
|
||||
sections = "Sezioni"
|
||||
nojs = "Questa pagina non usa JavaScript, cookie né tracker."
|
||||
back = "home"
|
||||
version = "Versione"
|
||||
toc = "Indice"
|
||||
news_p = "Novità da kmalloc.org, scritte in inglese."
|
||||
news_all = "tutte le news"
|
||||
news_empty = "Ancora nessuna news."
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
---
|
||||
id: manifesto
|
||||
path: /it/manifesto.html
|
||||
nav: manifesto
|
||||
title: kmalloc.org: Manifesto
|
||||
description: Il manifesto di kmalloc.org: software libero, privacy, un Internet aperto, dignità nel lavoro.
|
||||
---
|
||||
<h1>{{manifesto_title}}</h1>
|
||||
|
||||
<p>
|
||||
<strong>{{version}} {{manifesto_version}}</strong>
|
||||
</p>
|
||||
|
||||
<h2>{{toc}}</h2>
|
||||
|
||||
<ul>
|
||||
{{manifesto_toc}}
|
||||
</ul>
|
||||
|
||||
{{manifesto_body}}
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
---
|
||||
id: people
|
||||
path: /it/persone.html
|
||||
nav: people
|
||||
title: kmalloc.org: Persone
|
||||
description: Le persone dietro kmalloc.org.
|
||||
---
|
||||
<h1>Persone</h1>
|
||||
|
||||
<p>
|
||||
Chi c'è dietro kmalloc.org.
|
||||
</p>
|
||||
|
||||
<h2 id="squid">squid</h2>
|
||||
|
||||
<p>
|
||||
Sono squid. Gestisco kmalloc.org, scrivo codice e mantengo i servizi di questo sito. Mi appassionano i computer da quando, a dieci anni, ebbi un IBM PS/2 con un 486DX e giocai a Gorilla, un gioco in QBasic: da allora smonto le cose per capire come funzionano. Fuori dal lavoro: retrocomputing, fantascienza ed extreme metal.
|
||||
</p>
|
||||
|
||||
<ul>
|
||||
<li><a href="https://social.kmalloc.org/@squid">Mastodon</a></li>
|
||||
<li><a href="https://git.kmalloc.org/squid">git</a></li>
|
||||
</ul>
|
||||
|
|
@ -1,83 +0,0 @@
|
|||
---
|
||||
id: services
|
||||
path: /it/servizi.html
|
||||
nav: services
|
||||
title: kmalloc.org: Servizi
|
||||
description: I servizi di kmalloc.org: posta, git, Mastodon, XMPP, Matrix, liste di posta e videoconferenze. Gratuiti, su richiesta.
|
||||
---
|
||||
<h1>Servizi</h1>
|
||||
|
||||
<p>
|
||||
Questi servizi girano sul nostro server, con software libero, per chi vuole un'alternativa alle grandi piattaforme.
|
||||
</p>
|
||||
|
||||
<h2 id="account">Richiedi un account</h2>
|
||||
|
||||
<p>
|
||||
I servizi sono gratuiti. Per chiedere un account scrivi a
|
||||
<strong>{{contact_shown}}</strong>
|
||||
(sostituisci (at) con @),
|
||||
indicando quali servizi vuoi e il nome utente che preferisci.
|
||||
</p>
|
||||
|
||||
<h2 id="mail">Email</h2>
|
||||
|
||||
<p>
|
||||
Un indirizzo @kmalloc.org sul nostro server di posta, con webmail e supporto per qualsiasi client di posta standard. IMAP: mail.kmalloc.org, porta 993 (TLS). Invio SMTP: mail.kmalloc.org, porta 465 (TLS). La posta in uscita è firmata con DKIM e protetta da SPF e DMARC.
|
||||
<a href="https://webmail.kmalloc.org/">apri</a>.
|
||||
</p>
|
||||
|
||||
<h2 id="lists">Mailing lists</h2>
|
||||
|
||||
<p>
|
||||
Liste di posta con archivi consultabili sul web (Mailman 3). Le liste stanno sotto @lists.kmalloc.org. Se te ne serve una, chiedila.
|
||||
<a href="https://lists.kmalloc.org/">apri</a>.
|
||||
</p>
|
||||
|
||||
<h2 id="git">Git</h2>
|
||||
|
||||
<p>
|
||||
Hosting di codice con Forgejo: repository, issue e pull request. Git via SSH usa la porta 2222. Per leggere i repository pubblici non serve un account.
|
||||
<a href="https://git.kmalloc.org/">apri</a>.
|
||||
</p>
|
||||
|
||||
<h2 id="social">Mastodon</h2>
|
||||
|
||||
<p>
|
||||
Un server Mastodon. Il tuo indirizzo è @nome@social.kmalloc.org. L'account si può chiedere direttamente sul sito: le richieste si approvano a mano.
|
||||
<a href="https://social.kmalloc.org/">apri</a>.
|
||||
</p>
|
||||
|
||||
<h2 id="chat">XMPP chat</h2>
|
||||
|
||||
<p>
|
||||
Messaggistica con XMPP: indirizzo nome@kmalloc.org, stanze di gruppo su conference.kmalloc.org, condivisione di file e chiamate audio e video con un nostro server TURN. Usa il client web o qualsiasi app XMPP (server kmalloc.org, porta 5222).
|
||||
<a href="https://chat.kmalloc.org/">apri</a>.
|
||||
</p>
|
||||
|
||||
<h2 id="matrix">Matrix</h2>
|
||||
|
||||
<p>
|
||||
Un homeserver Matrix: indirizzo @nome:kmalloc.org. Usa il client web Element o qualsiasi app Matrix con homeserver matrix.kmalloc.org.
|
||||
<a href="https://element.kmalloc.org/">apri</a>.
|
||||
</p>
|
||||
|
||||
<h2 id="meet">Video conferences</h2>
|
||||
|
||||
<p>
|
||||
Videoconferenze con Jitsi Meet. Chiunque abbia il link può entrare in una stanza; per crearne una serve un account.
|
||||
<a href="https://meet.kmalloc.org/">apri</a>.
|
||||
</p>
|
||||
|
||||
<h2 id="donate">Sostieni kmalloc.org</h2>
|
||||
|
||||
<p>
|
||||
Le donazioni sono benvenute e aiutano a tenere acceso il server. Indirizzo Bitcoin:
|
||||
<a href="bitcoin:{{btc}}"><code>{{btc}}</code></a>
|
||||
</p>
|
||||
|
||||
<h2 id="terms">Da sapere</h2>
|
||||
|
||||
<p>
|
||||
Tutto è gestito da una persona su un solo server, con backup notturni cifrati e nessuna garanzia di disponibilità. Siate rispettosi: il manifesto spiega in cosa crediamo.
|
||||
</p>
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue