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