From 32c1a5dd203435e8bef324306d1516e28ce14615 Mon Sep 17 00:00:00 2001 From: Arne Rief Date: Sat, 20 Dec 2025 20:03:23 +0100 Subject: Post-Card new design, improved styling for codeblocks & search --- assets/js/main.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'assets/js/main.js') diff --git a/assets/js/main.js b/assets/js/main.js index 6eba32b..d849b4e 100644 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -75,6 +75,9 @@ link.href = post.url; link.innerHTML = post.title; + const section = li.querySelector(".post-card__section-badge"); + if (section) section.textContent = post.section; + const date = li.querySelector(".post-card__publish-date"); date.textContent = new Date(post.date).toLocaleDateString(); date.setAttribute("datetime", post.date); -- cgit v1.2.3