|
|
|
@ -13,17 +13,19 @@ |
|
|
|
|
<% } %> |
|
|
|
|
|
|
|
|
|
<section class="post-list"> |
|
|
|
|
<% page.posts.each(function(post){ %> |
|
|
|
|
<% if (post.top == true) { %> |
|
|
|
|
<% if (page.prev == 0) { %> |
|
|
|
|
<% site.posts.each(function(post){ %> |
|
|
|
|
<% if (post.top) { %> |
|
|
|
|
<div class='post-wrapper'> |
|
|
|
|
<%- partial('post', {post: post}) %> |
|
|
|
|
<%- partial('post', {post: post}) %> |
|
|
|
|
</div> |
|
|
|
|
<% } %> |
|
|
|
|
<% }) %> |
|
|
|
|
<% }) %> |
|
|
|
|
<% } %> |
|
|
|
|
<% page.posts.each(function(post){ %> |
|
|
|
|
<% if (!post.top || post.top != true) { %> |
|
|
|
|
<% if (!post.top) { %> |
|
|
|
|
<div class='post-wrapper'> |
|
|
|
|
<%- partial('post', {post: post}) %> |
|
|
|
|
<%- partial('post', {post: post}) %> |
|
|
|
|
</div> |
|
|
|
|
<% } %> |
|
|
|
|
<% }) %> |
|
|
|
|