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

30 lines
724 B
HTML
Raw Normal View History

2021-12-12 15:01:03 +08:00
<style>
.gh-contribuors {
display: table;
padding: 0 1rem;
margin: 0 0 1rem;
margin-block-start: 1em;
margin-block-end: 1em;
}
.gh-contribuors ul {
list-style: none;
}
.gh-contribuors li {
margin: 4px !important;
float: left;
}
.gh-contribuors img {
width: 32px;
height: 32px;
border-radius: 50%;
}
</style>
{{- $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 15:01:03 +08:00
<ul>
{{- range $contributors }}
2021-12-12 16:06:36 +08:00
<li><a href="https://github.com/mtf-wiki/MtF-Wiki/commits?author={{ .login }}" title="{{ .login }}"><img src="{{ .avatar_url }}"/></a></li>
2021-12-12 15:01:03 +08:00
{{- end }}
</ul>
2021-12-12 18:22:27 +08:00
</section>