MtF-wiki/layouts/shortcodes/github/profile.html

6 lines
291 B
HTML
Raw Normal View History

2021-12-12 15:01:03 +08:00
{{- $name := .Get 1 -}}
{{- with getJSON (printf "https://api.github.com/users/%s" (.Get 0)) -}}
<a class="github-profile" href="{{ .html_url }}" title="{{ $name | default .name }}">
2022-02-06 18:55:35 +08:00
<img src="{{ .avatar_url }}"><b>{{ $name | default .name }}</b><i class="bi bi-github"></i>
2021-12-12 15:01:03 +08:00
</a>
2022-02-06 18:55:35 +08:00
{{- end -}}