fix the link date again, hopefully

This commit is contained in:
2026-08-13 14:37:12 -05:00
parent cb97df446e
commit e142ef542b

View File

@@ -67,11 +67,15 @@
posts.forEach(post => {
const li = document.createElement('li');
const a = document.createElement('a');
a.textContent = post.title + '<i class="post-link-date">' + post.date + '</i>';
const i = document.createElement('i');
a.textContent = post.title;
i.textContent = post.date;
a.href = post.type === 'html'
? 'posts/' + post.file
: 'post.html?file=' + encodeURIComponent(post.file);
li.appendChild(a);
a.appendChild(i);
i.classList.add("post-link-date");
list.appendChild(li);
});
} catch (err) {