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 }}