Homepage: remove duplicate source link from project list

This commit is contained in:
ltadeu6 2026-05-25 18:08:26 -03:00
parent c67e1a7a71
commit 63ed960353
No known key found for this signature in database
GPG key ID: FB9FDAB6B6F3418D

View file

@ -54,11 +54,8 @@
}
el.innerHTML = visible.map(r => {
const desc = r.description ? `<span class="dim"> — ${r.description}</span>` : '';
const live = r.website ? `<a href="${r.website}">live</a> · ` : '';
return `<p>
<a href="${r.html_url}">${r.name}</a>${desc}
<br><span class="dim">${live}<a href="${r.html_url}">source</a></span>
</p>`;
const live = r.website ? `<br><span class="dim"><a href="${r.website}">live</a></span>` : '';
return `<p><a href="${r.html_url}">${r.name}</a>${desc}${live}</p>`;
}).join('');
} catch {
el.innerHTML = '<p class="dim">— could not load repositories —</p>';