1
0
Fork 0
mirror of https://github.com/dilllxd/gitfolio.git synced 2024-08-14 22:28:09 +00:00

Repo list now pulls from a JSON list like Blogs

This commit is contained in:
Josiah Bradbury 2019-05-10 20:42:38 -05:00
parent 9949893bf0
commit 79f3b5909e
5 changed files with 101 additions and 21 deletions

View file

@ -62,6 +62,25 @@
`)
}
});
$.getJSON("repos.json", function(repos){
for(var i = 0; i < repos.length; i++){
$("#projects").append(`
<a href="${repos[i].html_url}" target="_blank">
<section>
<div class="section_title">${repos[i].name}</div>
<div class="about_section">
${repos[i].description}
</div>
<div class="bottom_section">
<span><i class="fas fa-code"></i>&nbsp; ${repos[i].language}</span>
<span><i class="fas fa-star"></i>&nbsp; ${repos[i].stargazers_count}</span>
<span><i class="fas fa-code-branch"></i>&nbsp; ${repos[i].forks_count}</span>
</div>
</section>
</a>
`)
}
});
</script>
</body>
</html>