Hide hidden blog posts
This commit is contained in:
parent
b07efd1f84
commit
67d2e2174e
1 changed files with 10 additions and 8 deletions
|
@ -308,6 +308,7 @@ function converter(html, dynamic = true) {
|
||||||
var addedHTML = ""
|
var addedHTML = ""
|
||||||
for (var i in api.blogPosts) {
|
for (var i in api.blogPosts) {
|
||||||
var post = api.blogPosts[i]
|
var post = api.blogPosts[i]
|
||||||
|
if (!post.hidden) {
|
||||||
addedHTML +=
|
addedHTML +=
|
||||||
`<div class="post">
|
`<div class="post">
|
||||||
<a style="text-decoration: none;" href="./${post.folder}">
|
<a style="text-decoration: none;" href="./${post.folder}">
|
||||||
|
@ -317,6 +318,7 @@ function converter(html, dynamic = true) {
|
||||||
</a>
|
</a>
|
||||||
</div>`
|
</div>`
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (!api.blogConnected) {
|
if (!api.blogConnected) {
|
||||||
addedHTML += "<p>Not connected to blog server :(</p>"
|
addedHTML += "<p>Not connected to blog server :(</p>"
|
||||||
} else if (addedHTML.length < 10) {
|
} else if (addedHTML.length < 10) {
|
||||||
|
|
Loading…
Reference in a new issue