1
0
Fork 0
mirror of https://github.com/dilllxd/gitfolio.git synced 2024-08-14 22:28:09 +00:00
repo with no desc caused it to print undefined, fixed now + null issue for languages
This commit is contained in:
imfunny 2019-05-18 22:18:42 +05:30 committed by GitHub
parent 7ef337eb95
commit 63392c7f03
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -43,10 +43,10 @@ jsdom.fromFile("./assets/index.html", options).then(function (dom) {
<section>
<div class="section_title">${repos[i].name}</div>
<div class="about_section">
${convertToEmoji(repos[i].description)}
<span style="display:${repos[i].description == undefined ? 'none' : 'block'};">${convertToEmoji(repos[i].description)}</span>
</div>
<div class="bottom_section">
<span><i class="fas fa-code"></i>&nbsp; ${repos[i].language}</span>
<span style="display:${repos[i].language == null ? 'none' : 'inline-block'};"><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>