Added wikipedia edit stat

This commit is contained in:
Brandon Rozek 2024-01-01 19:39:27 -05:00
parent a864c1ae22
commit 389b8c6f3d

View file

@ -67,6 +67,15 @@
{{ end }} {{ end }}
</td> </td>
</tr> </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> </table>
{{ $grouped := $posts.GroupByDate "2006" }} {{ $grouped := $posts.GroupByDate "2006" }}