fix the link date again, hopefully
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user