Skip to content

Commit b85b5b3

Browse files
committed
Replace adapter class with dedicated news-link class and remove redundant comment
The || fallback on created_at is kept as the current news.json does not yet contain created_at — it will be populated on the next CI run of fetch-news.py.
1 parent 76651ea commit b85b5b3

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

css/landing-page.css

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,15 @@ div.logo-holder > img {
265265
box-shadow: 0 2px 4px rgba(0,0,0,0.05);
266266
}
267267

268-
.news-card a.adapter {
268+
.news-card a.news-link {
269269
display: block;
270+
text-decoration: none;
271+
color: #040606;
272+
}
273+
274+
.news-card a.news-link:hover {
275+
text-decoration: none;
276+
color: #040606;
270277
}
271278

272279
.news-card h4 {

js/news-collect.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ document.addEventListener("DOMContentLoaded", async function () {
1010

1111
if (!topics.length) throw new Error("No topics found");
1212

13-
// Sort by publication date instead of last activity
1413
topics.sort((a, b) => new Date(b.created_at || b.last_posted_at) - new Date(a.created_at || a.last_posted_at));
1514
loadingText.style.display = "none";
1615

@@ -23,7 +22,7 @@ document.addEventListener("DOMContentLoaded", async function () {
2322

2423
const date = new Date(topic.created_at || topic.last_posted_at).toLocaleDateString("en-GB");
2524

26-
card.innerHTML = `<a href="${topic.url}" target="_blank" rel="noopener noreferrer" class="adapter no-external-marker">
25+
card.innerHTML = `<a href="${topic.url}" target="_blank" rel="noopener noreferrer" class="news-link no-external-marker">
2726
<h4><strong>${topic.title}</strong></h4>
2827
<p>${topic.description}</p>
2928
<p class="text-muted"><small>${date}</small></p>

0 commit comments

Comments
 (0)