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 => {
|
el.innerHTML = visible.map(r => {
|
||||||
const desc = r.description ? `<span class="dim"> — ${r.description}</span>` : '';
|
const desc = r.description ? `<span class="dim"> — ${r.description}</span>` : '';
|
||||||
const live = r.website ? `<a href="${r.website}">live</a> · ` : '';
|
const live = r.website ? `<br><span class="dim"><a href="${r.website}">live</a></span>` : '';
|
||||||
return `<p>
|
return `<p><a href="${r.html_url}">${r.name}</a>${desc}${live}</p>`;
|
||||||
<a href="${r.html_url}">${r.name}</a>${desc}
|
|
||||||
<br><span class="dim">${live}<a href="${r.html_url}">source</a></span>
|
|
||||||
</p>`;
|
|
||||||
}).join('');
|
}).join('');
|
||||||
} catch {
|
} catch {
|
||||||
el.innerHTML = '<p class="dim">— could not load repositories —</p>';
|
el.innerHTML = '<p class="dim">— could not load repositories —</p>';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue