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.
|
|
|
<div class='l_main<%- page.sidebar == false ? ' no_sidebar' : '' %>'>
|
|
|
|
<% if (site.posts && site.posts.length > 0) { %>
|
|
|
|
<section class="post-list">
|
|
|
|
<% site.posts.sort(page.sort ? page.sort : "-date").each(function(p){ %>
|
|
|
|
<% if (p.type == page.type) { %>
|
|
|
|
<div class='post-wrapper'>
|
|
|
|
<%- partial('_partial/post', {post: p, 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}) %>
|