Update the way dates render on post list

This commit is contained in:
2026-08-13 14:22:23 -05:00
parent 4586616251
commit cb97df446e
2 changed files with 14 additions and 2 deletions

View File

@@ -33,15 +33,17 @@
<div id="links-section">
<h2>Links</h2>
<ul>
<li><a href="https://git.bellsworne.tech/">Git repos</a></li>
<li><a href="https://youtube.com/c/hexstudios">YouTube</a></li>
<li><a href="https://bellsworne.com">My company - Bellsworne</a></li>
<li><a href="https://git.bellsworne.tech/chrisbell/hexstudios-co">Page source code (git)</a></li>
</ul>
</div>
<div id="sticky-posts-section">
<h2>Pinned posts</h2>
<ul>
<li><a href="https://hexstudios.co/post.html?file=about.md">About // August 13, 2026</a></li>
<li><a href="https://hexstudios.co/post.html?file=about.md">About <i class="post-link-date">August 13, 2026</i></a></li>
</ul>
</div>
@@ -65,7 +67,7 @@
posts.forEach(post => {
const li = document.createElement('li');
const a = document.createElement('a');
a.textContent = post.title + " // " + post.date;
a.textContent = post.title + '<i class="post-link-date">' + post.date + '</i>';
a.href = post.type === 'html'
? 'posts/' + post.file
: 'post.html?file=' + encodeURIComponent(post.file);