mirror of
https://github.com/tiennm99/blog.git
synced 2026-10-13 22:15:29 +00:00
Update github-pages.html
This commit is contained in:
1 parent
ef0e9b2e01
commit
19cd91e59b
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