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

Repos to pull from list like Blogs (#11)

* Reimplimented Repos pulling from list.

* added repos.json back in
This commit is contained in:
Josiah Bradbury 2019-05-12 08:00:22 -05:00 committed by imfunny
parent 8b432362cf
commit ee230e3a1a
4 changed files with 94 additions and 20 deletions

View file

@ -62,6 +62,25 @@
`)
}
});
$.getJSON("./repos/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>