From 5882b9d19ac1be35c0e68b37e37abb7f9bf81c25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lilian=20J=C3=B3nsd=C3=B3ttir?= Date: Sat, 27 Jan 2024 18:57:57 -0800 Subject: [PATCH] template tweaks about template more resembles links now --- templates/about.page.tmpl | 20 +++++++++++--------- templates/data/about.page.yaml | 2 +- templates/links.tmpl | 2 +- 3 files changed, 13 insertions(+), 11 deletions(-) diff --git a/templates/about.page.tmpl b/templates/about.page.tmpl index 2fb3414..dbdd9ce 100644 --- a/templates/about.page.tmpl +++ b/templates/about.page.tmpl @@ -6,15 +6,17 @@ {{ index .StringMap "about" }} - - -

links

- {{- range (index .LinkMap "Personal") }} - - - {{ .Text }} -
- {{ end }} + {{- range $key, $value := .LinkMap }} +

{{ $key }}

+ {{- range $value }} + + {{- if (ne .Icon "") }} + + {{ end -}} + {{ .Text }} +
+ {{- end }} + {{- end }}
diff --git a/templates/data/about.page.yaml b/templates/data/about.page.yaml index eef1130..e6a6167 100644 --- a/templates/data/about.page.yaml +++ b/templates/data/about.page.yaml @@ -1,7 +1,7 @@ StringMap: about: she/her; 1989; queer anarchist; self-taught, aspiring developer and sysadmin; lover of music, games, books, free software, history, fog, mountains, and forests; LinkMap: - Personal: + links: - href: https://matrix.to/#/@celediel:burning.moe text: matrix icon: tabler:brand-matrix diff --git a/templates/links.tmpl b/templates/links.tmpl index ffee87d..4ed9427 100644 --- a/templates/links.tmpl +++ b/templates/links.tmpl @@ -14,7 +14,7 @@ {{- .Text }}
{{- end }} - {{ end -}} + {{- end }}