Hide hidden blog posts
This commit is contained in:
parent
b07efd1f84
commit
67d2e2174e
1 changed files with 10 additions and 8 deletions
|
@ -308,14 +308,16 @@ function converter(html, dynamic = true) {
|
|||
var addedHTML = ""
|
||||
for (var i in api.blogPosts) {
|
||||
var post = api.blogPosts[i]
|
||||
addedHTML +=
|
||||
`<div class="post">
|
||||
<a style="text-decoration: none;" href="./${post.folder}">
|
||||
<h2>${post.title}</h2>
|
||||
<p style="color: white; font-size: 1rem;">${post.desc}</p>
|
||||
<p style="color: darkgray; font-size: 1rem;">Path: <span class="noHighlight">/${post.folder}/</span></p>
|
||||
</a>
|
||||
</div>`
|
||||
if (!post.hidden) {
|
||||
addedHTML +=
|
||||
`<div class="post">
|
||||
<a style="text-decoration: none;" href="./${post.folder}">
|
||||
<h2>${post.title}</h2>
|
||||
<p style="color: white; font-size: 1rem;">${post.desc}</p>
|
||||
<p style="color: darkgray; font-size: 1rem;">Path: <span class="noHighlight">/${post.folder}/</span></p>
|
||||
</a>
|
||||
</div>`
|
||||
}
|
||||
}
|
||||
if (!api.blogConnected) {
|
||||
addedHTML += "<p>Not connected to blog server :(</p>"
|
||||
|
|
Loading…
Reference in a new issue