summaryrefslogtreecommitdiff
path: root/assets/js/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'assets/js/main.js')
-rw-r--r--assets/js/main.js3
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);