Skip to content

Commit b3f3ad6

Browse files
committed
deploy: c98b8a4
1 parent 16ec919 commit b3f3ad6

File tree

6 files changed

+111
-104
lines changed

6 files changed

+111
-104
lines changed

css/landing-page.css

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ div.image-holder.usp > img {
8989
}
9090

9191
/* Adapter section */
92-
/* adapter class also used for news in the langing page */
92+
/* adapter class also used for news in the landing page */
9393
a.adapter {
9494
text-decoration: none;
9595
}
@@ -265,6 +265,17 @@ div.logo-holder > img {
265265
box-shadow: 0 2px 4px rgba(0,0,0,0.05);
266266
}
267267

268+
.news-card a.news-link {
269+
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;
277+
}
278+
268279
.news-card h4 {
269280
overflow: hidden;
270281
text-overflow: ellipsis;

doxygen/develop/doxygen.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2442,7 +2442,7 @@ details[open]>summary::before {
24422442

24432443

24442444
html {
2445-
--timestamp: 'Sun Feb 22 2026 20:23:09'
2445+
--timestamp: 'Sun Feb 22 2026 21:52:43'
24462446
}
24472447
span.timestamp { content: ' '; }
24482448
span.timestamp:before { content: var(--timestamp); }

doxygen/main/doxygen.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2442,7 +2442,7 @@ details[open]>summary::before {
24422442

24432443

24442444
html {
2445-
--timestamp: 'Sun Feb 22 2026 20:23:46'
2445+
--timestamp: 'Sun Feb 22 2026 21:53:17'
24462446
}
24472447
span.timestamp { content: ' '; }
24482448
span.timestamp:before { content: var(--timestamp); }

feed.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
<description>preCICE (Precise Code Interaction Coupling Environment) is an open-source coupling library for partitioned simulations of multi-physics scenarios such as fluid-structure interaction or fluid-structure-acoustic interaction.</description>
66
<link>https://precice.org/</link>
77
<atom:link href="https://precice.org/feed.xml" rel="self" type="application/rss+xml"/>
8-
<pubDate>Sun, 22 Feb 2026 20:23:01 +0000</pubDate>
9-
<lastBuildDate>Sun, 22 Feb 2026 20:23:01 +0000</lastBuildDate>
8+
<pubDate>Sun, 22 Feb 2026 21:52:35 +0000</pubDate>
9+
<lastBuildDate>Sun, 22 Feb 2026 21:52:35 +0000</lastBuildDate>
1010
<generator>Jekyll v4.4.1</generator>
1111

1212
</channel>

js/news-collect.js

Lines changed: 19 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
console.log(">>> USING JS FILE: news-collect.js LOADED <<<");
2-
31
document.addEventListener("DOMContentLoaded", async function () {
42
const newsContainer = document.getElementById("news-container");
53
const loadingText = document.getElementById("loading-news");
@@ -12,29 +10,27 @@ document.addEventListener("DOMContentLoaded", async function () {
1210

1311
if (!topics.length) throw new Error("No topics found");
1412

15-
topics.sort((a, b) => new Date(b.last_posted_at) - new Date(a.last_posted_at));
13+
topics.sort((a, b) => new Date(b.created_at || b.last_posted_at) - new Date(a.created_at || a.last_posted_at));
1614
loadingText.style.display = "none";
1715

18-
for (const topic of topics.slice(0, 3)) {
19-
const col = document.createElement("div");
20-
col.className = "col-md-4 col-sm-6 col-xs-12";
21-
22-
const card = document.createElement("div");
23-
card.className = "news-card";
24-
25-
// NOTE: The `adapter` class is used here as an already available card class, feel free to provide a new one.
26-
card.innerHTML = `<a href="${topic.url}" target="_blank" rel="noopener noreferrer" class="adapter no-external-marker">
27-
<h4><strong>${topic.title}</strong></h4>
28-
<p>${topic.description}</p>
29-
</a>
30-
<p class="text-muted"><small>
31-
Last activity: ${new Date(topic.last_posted_at).toLocaleDateString("en-GB")}
32-
</small></p>
33-
`;
34-
35-
col.appendChild(card);
36-
newsContainer.appendChild(col);
37-
}
16+
for (const topic of topics.slice(0, 3)) {
17+
const col = document.createElement("div");
18+
col.className = "col-md-4 col-sm-6 col-xs-12";
19+
20+
const card = document.createElement("div");
21+
card.className = "news-card";
22+
23+
const date = new Date(topic.created_at || topic.last_posted_at).toLocaleDateString("en-GB");
24+
25+
card.innerHTML = `<a href="${topic.url}" target="_blank" rel="noopener noreferrer" class="news-link no-external-marker">
26+
<h4><strong>${topic.title}</strong></h4>
27+
<p>${topic.description}</p>
28+
<p class="text-muted"><small>${date}</small></p>
29+
</a>`;
30+
31+
col.appendChild(card);
32+
newsContainer.appendChild(col);
33+
}
3834

3935
} catch (err) {
4036
console.error(err);

0 commit comments

Comments
 (0)