diff --git a/build.py b/build.py index e117637..61b70d3 100644 --- a/build.py +++ b/build.py @@ -360,7 +360,9 @@ def build(): cards = [] for person in site["people"]: handle, nm = person["handle"], person.get("name", "") - links = "\n".join(f'
  • {esc(x["label"])}
  • ' for x in person["links"]) + entries = ([("home", person["home"], data["personal_page"])] if person.get("home") else []) + entries += [("link", x["url"], x["label"]) for x in person["links"]] + links = "\n".join(f'
  • {esc(label)}
  • ' for _, u, label in entries) 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")) diff --git a/lang/en.json b/lang/en.json index 6087da7..4b40c22 100644 --- a/lang/en.json +++ b/lang/en.json @@ -52,7 +52,8 @@ "intro": "Who is behind kmalloc.org.", "bios": { "squid": "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." - } + }, + "personal_page": "Personal page" }, "services": { "path": "/services.html", diff --git a/lang/it.json b/lang/it.json index 1fa673e..55d4215 100644 --- a/lang/it.json +++ b/lang/it.json @@ -55,7 +55,8 @@ "intro": "Chi c'รจ dietro kmalloc.org.", "bios": { "squid": "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." - } + }, + "personal_page": "Pagina personale" }, "services": { "path": "/it/servizi.html", diff --git a/site.json b/site.json index 952ca76..8e8dfff 100644 --- a/site.json +++ b/site.json @@ -70,7 +70,8 @@ "label": "git", "url": "https://git.kmalloc.org/squid" } - ] + ], + "home": "/~squid/" } ] }