fix: missing links, credits et al
This commit is contained in:
parent
19b97f2af6
commit
296c1cde1b
5 changed files with 11 additions and 22 deletions
|
|
@ -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>
|
||||
`
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue