You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<%- partial('_pre') %>
|
|
|
|
<% page.comments = false; %>
|
|
|
|
<div class='l_main<%- page.sidebar == false ? ' no_sidebar' : '' %>'>
|
|
|
|
<% if (site.pages && site.pages.length > 0) { %>
|
|
|
|
<section class="post-list <%- theme.layout.multiple_columns ? 'multiple-columns' : '' %>">
|
|
|
|
<% if (!page.prev) { %>
|
|
|
|
<% site.pages.sort("-date").each(function(post){ %>
|
|
|
|
<% if (post.group && post.group == page.group && post.layout != 'list') { %>
|
|
|
|
<% if (post.top) { %>
|
|
|
|
<div class='post-wrapper'>
|
|
|
|
<%- partial('_partial/post', {post: post, index: false}) %>
|
|
|
|
</div>
|
|
|
|
<% } %>
|
|
|
|
<% } %>
|
|
|
|
<% }) %>
|
|
|
|
<% } %>
|
|
|
|
<% site.pages.sort("-date").each(function(post){ %>
|
|
|
|
<% if (post.group && post.group == page.group && post.layout != 'list') { %>
|
|
|
|
<% if (!post.top) { %>
|
|
|
|
<div class='post-wrapper'>
|
|
|
|
<%- partial('_partial/post', {post: post, index: false}) %>
|
|
|
|
</div>
|
|
|
|
<% } %>
|
|
|
|
<% } %>
|
|
|
|
<% }) %>
|
|
|
|
</section>
|
|
|
|
<% if (page && page.posts) { %>
|
|
|
|
<!-- 根据主题中的设置决定是否在archive中针对摘要部分的MathJax公式加载mathjax.js文件 -->
|
|
|
|
<%
|
|
|
|
var need_mathjax = false;
|
|
|
|
page.posts.each(function(post){
|
|
|
|
if (post.mathjax){
|
|
|
|
if (post.mathjax != "internal") {
|
|
|
|
need_mathjax = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
%>
|
|
|
|
<% if (need_mathjax){ %>
|
|
|
|
<%- partial('mathjax') %>
|
|
|
|
<% } %>
|
|
|
|
|
|
|
|
<% } %>
|
|
|
|
<% } %>
|
|
|
|
</div>
|
|
|
|
<%- partial('_partial/side') %>
|
|
|
|
<%- partial('_partial/footer', null, {cache: !config.relative_link}) %>
|