MtF-wiki/layouts/shortcodes/gh-contributors.html

9 lines
355 B
HTML
Raw Normal View History

2021-12-12 20:51:59 +08:00
{{- $contributors := getJSON
"https://api.github.com/repos/mtf-wiki/MtF-Wiki/contributors?per_page=100" }}
2021-12-12 18:22:27 +08:00
<section class="gh-contribuors">
2021-12-12 20:51:59 +08:00
{{- range where $contributors "type" "User" }}
2021-12-24 17:39:54 +08:00
{{- $avatar := resources.GetRemote .avatar_url -}}
<a href="{{ .html_url }}" title="{{ .login }}"><img src="{{ $avatar.Permalink }}"></a>
2021-12-12 20:51:59 +08:00
{{- end }}
2021-12-12 18:22:27 +08:00
</section>