<% if (page.prev == 0) { %>
<% site.posts.each(function(post){ %>
<% if (post.top) { %>
<%- partial('post', {post: post}) %>
<% } %>
<% }) %>
<% } %>
<% if (page.posts && page.posts.length > 0) { %>
<% page.posts.each(function(post){ %>
<% if (!post.top) { %>
<%- partial('post', {post: post}) %>
<% } %>
<% }) %>
<% } %>
<% if (page && page.posts) { %>
<% if (page.total > 1) { %>