55 lines
1.4 KiB
HTML
55 lines
1.4 KiB
HTML
|
{{ $icons := dict
|
||
|
"chocolatey" "candy-bar"
|
||
|
"codeberg" "codeberg"
|
||
|
"ebay" "ebay"
|
||
|
"epic" "chevrons-down"
|
||
|
"google-scholar" "google-scholar"
|
||
|
"github" "github"
|
||
|
"gitlab" "gitlab"
|
||
|
"hacker-news" "hacker-news"
|
||
|
"internet-archive" "university"
|
||
|
"lutris" "lutris"
|
||
|
"matrix" "matrix"
|
||
|
"orcid" "orcid"
|
||
|
"pandora" "p"
|
||
|
"quay" "circle-quarters"
|
||
|
"spotify" "spotify"
|
||
|
"steam" "steam"
|
||
|
"vimeo" "vimeo"
|
||
|
"zotero" "zotero"
|
||
|
}}
|
||
|
|
||
|
{{ $urlBases := dict
|
||
|
"chocolatey" "https://community.chocolatey.org/profiles/"
|
||
|
"codeberg" "https://codeberg.org/"
|
||
|
"ebay" "https://www.ebay.com/usr/"
|
||
|
"epid" "#"
|
||
|
"google-scholar" "https://scholar.google.com/citations?user="
|
||
|
"github" "https://github.com/"
|
||
|
"gitlab" "https://gitlab.com/"
|
||
|
"hacker-news" "https://news.ycombinator.com/user?id="
|
||
|
"internet-archive" "https://archive.org/details/@"
|
||
|
"lutris" "https://lutris.net/user/"
|
||
|
"matrix" "https://matrix.to/#/"
|
||
|
"orcid" "https://orcid.org/"
|
||
|
"pandora" "https://www.pandora.com/profile/"
|
||
|
"quay" "https://quay.io/user/"
|
||
|
"spotify" "https://open.spotify.com/user/"
|
||
|
"steam" "https://steamcommunity.com/id/"
|
||
|
"vimeo" "https://vimeo.com/"
|
||
|
"zotero" "https://www.zotero.org/"
|
||
|
}}
|
||
|
|
||
|
{{ $icon := index $icons .account }}
|
||
|
{{ $urlBase := index $urlBases .account }}
|
||
|
|
||
|
{{ $userURL := print $urlBase .username }}
|
||
|
|
||
|
|
||
|
<a
|
||
|
href="{{ $userURL }}"
|
||
|
{{ if .isMe }}rel="me"{{ end }}
|
||
|
title="{{ .account | humanize }}: {{ .username }}"
|
||
|
>{{ partial "fa.html" $icon }}</a
|
||
|
>
|