Added hiding of blog posts
This commit is contained in:
parent
c3cfb353f3
commit
ad29ab9fe5
@ -7,6 +7,7 @@ referencesOthers: true
|
|||||||
---
|
---
|
||||||
<% var posts = getCollection("posts").toJSON() %>
|
<% var posts = getCollection("posts").toJSON() %>
|
||||||
<% posts.forEach(function(post){ %>
|
<% posts.forEach(function(post){ %>
|
||||||
|
<% if(!post.hidden){ %>
|
||||||
<div class="post">
|
<div class="post">
|
||||||
<h2 class="title"><a href="<%- post.url %>"><%= post.title %></a></h2>
|
<h2 class="title"><a href="<%- post.url %>"><%= post.title %></a></h2>
|
||||||
<h3 class="subtitle"><%- post.subtitle %></h3>
|
<h3 class="subtitle"><%- post.subtitle %></h3>
|
||||||
@ -16,4 +17,5 @@ referencesOthers: true
|
|||||||
</div>
|
</div>
|
||||||
<a class="morelink" href="<%- post.url %>">Read More...</a>
|
<a class="morelink" href="<%- post.url %>">Read More...</a>
|
||||||
</div>
|
</div>
|
||||||
|
<% } %>
|
||||||
<% }) %>
|
<% }) %>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user