mirror of
https://github.com/tiennm99/blog.git
synced 2026-10-14 02:15:41 +00:00
Update github-pages.html
This commit is contained in:
1 parent
902711e06b
commit
32dca4c4de
1 file changed
+2
-1
@@ -15,11 +15,12 @@
|
||||
<script>
|
||||
const username = "tiennm99";
|
||||
const type = "all";
|
||||
const sort = "updated";
|
||||
const perPage = 100;
|
||||
let page = 1;
|
||||
|
||||
function fetchRepos(page) {
|
||||
const url = `https://api.github.com/users/${username}/repos?type=${type}&per_page=${perPage}&page=${page}`;
|
||||
const url = `https://api.github.com/users/${username}/repos?type=${type}&sort=${sort}&per_page=${perPage}&page=${page}`;
|
||||
|
||||
fetch(url)
|
||||
.then(response => {
|
||||
|
||||
Reference in new issue
Block a user