diff options
| author | Arne Rief <riearn@proton.me> | 2025-12-20 20:03:23 +0100 |
|---|---|---|
| committer | Arne Rief <riearn@proton.me> | 2025-12-20 20:03:23 +0100 |
| commit | 32c1a5dd203435e8bef324306d1516e28ce14615 (patch) | |
| tree | 8e044a02a47ac2f2ab8341e82ae9e7095d4c5cea /assets/js/main.js | |
| parent | 6b5ac43b0eb9f799220783e98b5961192666b755 (diff) | |
Post-Card new design, improved styling for codeblocks & search
Diffstat (limited to 'assets/js/main.js')
| -rw-r--r-- | assets/js/main.js | 3 |
1 files changed, 3 insertions, 0 deletions
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); |
