feat: organize file structure

This commit is contained in:
Barrett Ruth 2024-06-18 16:21:22 -05:00
parent c362d17262
commit e1a9e58386
3 changed files with 3 additions and 1 deletions

View file

@ -46,7 +46,9 @@ function renderPosts(topic) {
post.classList.add("post");
const link = document.createElement("a");
link.href = postLink ? `/posts/${postLink}.html` : `/wip.html`;
link.href = postLink
? `/posts/${topic.toLowerCase()}/${postLink}.html`
: `/wip.html`;
link.textContent = postName;
link.style.textDecoration = "underline";