template tweaks

about template more resembles links now
This commit is contained in:
Lilian Jónsdóttir 2024-01-27 18:57:57 -08:00
parent b56b6f11cb
commit 5882b9d19a
3 changed files with 13 additions and 11 deletions

View file

@ -6,15 +6,17 @@
<span id="bigwords">
{{ index .StringMap "about" }}
</span>
<!-- personal links -->
<h4>links</h4>
{{- range (index .LinkMap "Personal") }}
<a href="{{ .Href }}">
<span class="iconify" data-icon="{{ .Icon }}"></span>
{{ .Text }}
</a><br />
{{ end }}
{{- range $key, $value := .LinkMap }}
<h4>{{ $key }}</h4>
{{- range $value }}
<a href="{{ .Href }}" class="links">
{{- if (ne .Icon "") }}
<span class="iconify" data-icon="{{ .Icon }}"></span>
{{ end -}}
{{ .Text }}
</a><br />
{{- end }}
{{- end }}
<br />
<a href="/">
<span class="iconify" data-icon="material-symbols:keyboard-arrow-left"></span>

View file

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

View file

@ -14,7 +14,7 @@
{{- .Text }}
</a><br />
{{- end }}
{{ end -}}
{{- end }}
<br />
<a href="/" id="back">
<span class="iconify" data-icon="material-symbols:keyboard-arrow-left"></span>