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:
parent
8b432362cf
commit
ee230e3a1a
4 changed files with 94 additions and 20 deletions
|
@ -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> ${repos[i].language}</span>
|
||||
<span><i class="fas fa-star"></i> ${repos[i].stargazers_count}</span>
|
||||
<span><i class="fas fa-code-branch"></i> ${repos[i].forks_count}</span>
|
||||
</div>
|
||||
</section>
|
||||
</a>
|
||||
`)
|
||||
}
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue