Fix date on posts list

This commit is contained in:
2026-08-13 12:38:00 -05:00
parent 40695352ad
commit 4927c33753
2 changed files with 3 additions and 2 deletions

View File

@@ -41,7 +41,7 @@
<div id="sticky-posts-section">
<h2>Pinned posts</h2>
<ul>
<li><a href="https://hexstudios.co/post.html?file=about.md">About | 2026-08-13</a></li>
<li><a href="https://hexstudios.co/post.html?file=about.md">About // August 13, 2026</a></li>
</ul>
</div>
@@ -65,7 +65,7 @@
posts.forEach(post => {
const li = document.createElement('li');
const a = document.createElement('a');
a.textContent = post.title + " | " + post.date;
a.textContent = post.title + " // " + post.date;
a.href = post.type === 'html'
? 'posts/' + post.file
: 'post.html?file=' + encodeURIComponent(post.file);