<% if (site.posts && site.posts.length > 0) { %>
<% if (!page.prev) { %> <% if (is_home()) { %> <% site.posts.each(function(post){ %> <% if (post.top) { %> <% if (page.group == undefined || post.group == page.group) { %>
<%- partial('post', {post: post}) %>
<% } %> <% } %> <% }) %> <% } else 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) { %> <% page.posts.each(function(post){ %> <% if (!post.top) { %>
<%- partial('post', {post: post}) %>
<% } %> <% }) %> <% } %>
<% if (page && page.posts) { %> <% if (page.total > 1) { %>
<% if (page.prev != 0) { %> <% } %>

<%= page.current%> / <%= page.total%>

<% if (page.next != 0) { %> <% } %>
<% } %> <% var need_mathjax = false; page.posts.each(function(post){ if (post.mathjax){ if (post.mathjax != "internal") { need_mathjax = true; } } }); %> <% if (need_mathjax){ %> <%- partial('../_third-party/mathjax') %> <% } %> <% } %> <% } %>