mirror of
https://github.com/rustdesk/doc.rustdesk.com.git
synced 2026-04-17 13:50:08 +00:00
seo/geo
This commit is contained in:
@@ -21,11 +21,18 @@ padding-left: 4px ;
|
||||
</style>
|
||||
<div class="ghContributors">
|
||||
{{ $url := .Get 0 }}
|
||||
{{ range getJSON $url }}
|
||||
{{ with try (resources.GetRemote $url) }}
|
||||
{{ with .Err }}
|
||||
{{ warnf "Unable to fetch GitHub contributors from %q: %s" $url . }}
|
||||
{{ else with .Value }}
|
||||
{{ $contributors := .Content | transform.Unmarshal }}
|
||||
{{ range $contributors }}
|
||||
<div>
|
||||
<img src="{{.avatar_url}}" class="inline" width="32" height="32" style="height: 32px;height: 32px;margin-bottom:.25em; vertical-align:middle; ">
|
||||
<label><a href="{{.html_url}}">@{{.login}}</a></label>
|
||||
<span class="contributions">{{.contributions}} commits</span>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user