mirror of
https://github.com/Brandon-Rozek/website-theme.git
synced 2024-11-24 00:56:34 -05:00
Added wikipedia edit stat
This commit is contained in:
parent
a864c1ae22
commit
389b8c6f3d
1 changed files with 9 additions and 0 deletions
|
@ -67,6 +67,15 @@
|
|||
{{ end }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Total Wikipedia Edits</td>
|
||||
<td>
|
||||
{{ $data := getJSON "https://en.wikipedia.org/w/api.php?action=query&list=users&ususers=BrandonRozek&usprop=editcount&format=json" }}
|
||||
{{ range first 1 $data.query.users }}
|
||||
{{ .editcount }}
|
||||
{{ end }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
{{ $grouped := $posts.GroupByDate "2006" }}
|
||||
|
|
Loading…
Reference in a new issue