feat: organize file structure
This commit is contained in:
parent
c362d17262
commit
e1a9e58386
3 changed files with 3 additions and 1 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue