mirror of
https://github.com/tiennm99/miti99.git
synced 2026-08-08 22:25:26 +00:00
[Fix] project not defind homepage
This commit is contained in:
@@ -43,7 +43,12 @@
|
||||
const urlCell = row.insertCell(2);
|
||||
|
||||
const repoUrl = repo.html_url;
|
||||
const pagesUrl = repo.homepage;
|
||||
let pagesUrl;
|
||||
if (repo.homepage !== null) {
|
||||
pagesUrl = repo.homepage;
|
||||
} else {
|
||||
pagesUrl = `https://${username}.github.io/${repo.name}`
|
||||
}
|
||||
|
||||
nameCell.innerHTML = `<a href="${repoUrl}" target="_blank">${repo.name}</a>`;
|
||||
descriptionCell.textContent = repo.description;
|
||||
|
||||
Reference in New Issue
Block a user