diff --git a/generateIndex.js b/generateIndex.js index 46d2fb1..5f33697 100644 --- a/generateIndex.js +++ b/generateIndex.js @@ -11,8 +11,10 @@ async function getRepos(url) { if (!response.ok) throw new Error("Failed to fetch repositories"); const repos = await response.json(); return repos.map(repo => ({ - html_url: repo.html_url, name: repo.name, + full_name: repo.full_name, + owner: repo.full_name.replace(`/${repo.name}`, ''), + owner_url: repo.html_url.replace(`/${repo.name}`, ''), description: repo.description, contributors_url: repo.contributors_url, pushed_at: repo.pushed_at, diff --git a/index.html b/index.html index 8d233a9..a4b6a2e 100644 --- a/index.html +++ b/index.html @@ -111,9 +111,17 @@
${repo.description || "No description"}
- `; + +${repo.description || "No description"}
+ `; const contributorsDiv = document.createElement("div"); contributorsDiv.className = "contributors"; @@ -123,9 +131,9 @@