fix: missing links, credits et al

This commit is contained in:
Rudra Saraswat 2025-12-13 12:49:46 +00:00
parent 19b97f2af6
commit 296c1cde1b
5 changed files with 11 additions and 22 deletions

View file

@ -1,9 +1,14 @@
let posts = {
'first post!': 'first-post'
'first post!': 'first-post',
}
Object.keys(posts).forEach(post => {
document.getElementById('posts_list').innerHTML += `
if (post.length > 35)
document.getElementById('posts_list').innerHTML += `
<li><a href="/site/blog.html?post=${posts[post]}">${post.slice(0, 35)}...</a></li>
`
else
document.getElementById('posts_list').innerHTML += `
<li><a href="/site/blog.html?post=${posts[post]}">${post}</a></li>
`
});