Homepage: remove duplicate source link from project list
This commit is contained in:
parent
c67e1a7a71
commit
63ed960353
1 changed files with 2 additions and 5 deletions
|
|
@ -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>';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue