unable getting remote info on render

pull/379/head
saeziae 2022-02-20 17:00:10 +08:00
parent b9314cd07d
commit efb3498e54
6 changed files with 28 additions and 30 deletions

View File

@ -20,13 +20,15 @@ Brother site: <https://FtM.wiki>
## Core maintainer
Founder: {{< github/profile "kenchiu233" >}}
Founder: {{< github/profile "27522149" "kenchiu233" "Kenchiu" >}}
{{< github/profile "CoelacanthusHex" >}}&nbsp;<coelacanthus@outlook.com>
{{< github/profile "43064781" "CoelacanthusHex" "Celeste" >}}&nbsp;<coelacanthus@outlook.com>
{{< github/profile "saeziae" >}}&nbsp;<mtfwiki@estela.cn> {{< shields/twitter saeziae >}} {{< shields/telegram saeziae >}}
{{< github/profile "26759054" "saeziae" "Estela">}}&nbsp;<mtfwiki@estela.cn> {{< shields/twitter saeziae >}}
{{< github/profile "septs" >}}&nbsp;<mtfwiki@septs.email>
{{< github/profile "44055214" "llh721113" "Joanna" >}}&nbsp;<llh721113@outlook.com>
{{< github/profile "3842474" "septs" >}}&nbsp;<mtfwiki@septs.email>
Contact if u would like to join!

View File

@ -20,13 +20,15 @@ Sitio hermano: <https://FtM.wiki>
## Mantenedores
Fundadora: {{< github/profile "kenchiu233" >}}
Fundadora: {{< github/profile "27522149" "kenchiu233" "Kenchiu" >}}
{{< github/profile "CoelacanthusHex" >}}&nbsp;<coelacanthus@outlook.com>
{{< github/profile "43064781" "CoelacanthusHex" "Celeste" >}}&nbsp;<coelacanthus@outlook.com>
{{< github/profile "saeziae" >}}&nbsp;<mtfwiki@estela.cn> {{< shields/twitter saeziae >}} {{< shields/telegram saeziae >}}
{{< github/profile "26759054" "saeziae" "Estela">}}&nbsp;<mtfwiki@estela.cn> {{< shields/twitter saeziae >}}
**¡Contáctame si quieres unirte!**
{{< github/profile "44055214" "llh721113" "Joanna" >}}&nbsp;<llh721113@outlook.com>
Gracias a los contribuyentes de GitHub:
{{< github/contributors >}}

View File

@ -20,17 +20,17 @@ weight: 0
## 主要人员
创始人:{{< github/profile "kenchiu233" >}}
创始人:{{< github/profile "27522149" "kenchiu233" "" >}}
{{< github/profile "CoelacanthusHex" >}}&nbsp;<coelacanthus@outlook.com>
{{< github/profile "43064781" "CoelacanthusHex" "Coelacanthus" >}}&nbsp;<coelacanthus@outlook.com>
{{< github/profile "saeziae" >}}&nbsp;<mtfwiki@estela.cn>
{{< github/profile "26759054" "saeziae" "">}}&nbsp;<mtfwiki@estela.cn>
{{< github/profile "llh721113" >}}&nbsp;<llh721113@outlook.com>
{{< github/profile "44055214" "llh721113" "" >}}&nbsp;<llh721113@outlook.com>
{{< github/profile "septs" >}}&nbsp;<mtfwiki@septs.email>
{{< github/profile "3842474" "septs" >}}&nbsp;<mtfwiki@septs.email>
{{< github/profile "Clansty" >}}&nbsp;<mtfwiki@gao4.pw>
{{< github/profile "3842474" "Clansty" "" >}}&nbsp;<mtfwiki@gao4.pw>
以及感谢所有 GitHub 贡献者:

View File

@ -20,13 +20,15 @@ weight: 0
## 主要人員
創始人:{{< github/profile "kenchiu233" >}}
發起人:{{< github/profile "27522149" "kenchiu233" "" >}}
{{< github/profile "CoelacanthusHex" >}}&nbsp;<coelacanthus@outlook.com>
{{< github/profile "43064781" "CoelacanthusHex" "Coelacanthus" >}}&nbsp;<coelacanthus@outlook.com>
{{< github/profile "saeziae" >}}&nbsp;<mtfwiki@estela.cn>
{{< github/profile "26759054" "saeziae" "">}}&nbsp;<mtfwiki@estela.cn>
{{< github/profile "septs" >}}&nbsp;<mtfwiki@septs.email>
{{< github/profile "44055214" "llh721113" "" >}}&nbsp;<llh721113@outlook.com>
{{< github/profile "3842474" "septs" >}}&nbsp;<mtfwiki@septs.email>
(這裏還有位置留給有意願的澳港臺朋友~~,歡迎聯繫我們!)

View File

@ -1,7 +1 @@
{{- $contributors := getJSON
"https://api.github.com/repos/mtf-wiki/MtF-Wiki/contributors?per_page=100" }}
<section class="gh-contribuors">
{{- range where $contributors "type" "User" }}
<a href="{{ .html_url }}" title="{{ .login }}"><img src="{{ .avatar_url }}"></a>
{{- end }}
</section>
<script>var getJSON = function(url, callback) {var xhr = new XMLHttpRequest();xhr.open('GET', url, true);xhr.responseType = 'json';xhr.onload = function() {var status = xhr.status;if (status === 200) {callback(null, xhr.response);} else {callback(status, xhr.response);}};xhr.send();};getJSON('https://api.github.com/repos/mtf-wiki/MtF-Wiki/contributors&per_page=100',function(err, data) {if (err === null) {for(i in data){var para = document.createElement("li");var node = document.createElement("a");var node2 = document.createElement("img");para.style="margin: 4px;float: left;";node2.style="width: 32px;height: 32px;border-radius: 50%;";node.href=data[i].html_url;node2.src=data[i].avatar_url;node.appendChild(node2);para.appendChild(node);var element = document.getElementById("cons");element.appendChild(para);}}});</script>

View File

@ -1,6 +1,4 @@
{{- $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 }}">
<img src="{{ .avatar_url }}"><b>{{ $name | default .name }}</b><i class="bi bi-github"></i>
</a>
{{- end -}}
{{- $uid := .Get 0 -}}
{{- $id := .Get 1 -}}
{{- $name := .Get 2 -}}
<a class="github-profile"href="https://github.com/{{ $uid }}"><img src="https://avatars.githubusercontent.com/u/{{ $uid }}?v=4?s=64"> <b>{{ $name | default $id }}</b> <i class="bi bi-github"></i></a>