<% if (!page.prev) { %>
<% site.pages.sort("-date").each(function(post){ %>
<% if (post.group && post.group == page.group && post.layout != 'list') { %>
<% if (post.top) { %>
<%- partial('_partial/post', {post: post, index: false}) %>
<% } %>
<% } %>
<% }) %>
<% } %>
<% site.pages.sort("-date").each(function(post){ %>
<% if (post.group && post.group == page.group && post.layout != 'list') { %>
<% if (!post.top) { %>
<%- partial('_partial/post', {post: post, index: false}) %>
<% } %>
<% } %>
<% }) %>
<% if (page && page.posts) { %>
<%
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') %>
<% } %>
<% } %>
<% } %>