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.

76 lines
2.2 KiB

7 years ago
<% if (is_tag()) { %>
6 years ago
<script>
6 years ago
window.subData= { title:'<%- __('pagetitle.tagcloud') %> : <%= page.tag %>'}
6 years ago
</script>
7 years ago
<% } else if (is_archive()) { %>
6 years ago
<script>
window.subData= { title:'year : <%= page.year %><%= page.month ? '.' + page.month : '' %>'}
</script>
7 years ago
<% } else if (is_category()) { %>
6 years ago
<script>
6 years ago
window.subData= { title:'<%- __('pagetitle.category') %> : <%= page.category %>'}
6 years ago
</script>
7 years ago
<% } %>
6 years ago
7 years ago
<section class="post-list">
6 years ago
<% if (page.prev == 0) { %>
<% site.posts.each(function(post){ %>
<% if (post.top) { %>
<div class='post-wrapper'>
6 years ago
<%- partial('post', {post: post}) %>
</div>
<% } %>
6 years ago
<% }) %>
<% } %>
<% page.posts.each(function(post){ %>
6 years ago
<% if (!post.top) { %>
7 years ago
<div class='post-wrapper'>
6 years ago
<%- partial('post', {post: post}) %>
7 years ago
</div>
<% } %>
6 years ago
<% }) %>
7 years ago
</section>
<% if (page.total > 1) { %>
6 years ago
<br>
<div class="prev-next">
<div class="prev-next">
<% if (page.prev != 0) { %>
<a class="prev" rel="prev" href="<%= url_for(page.prev_link) %>">
<section class="post prev" >
6 years ago
<i class="fas fa-chevron-left" aria-hidden="true"></i>&nbsp;<%- __('post.prev_page') %>&nbsp;
6 years ago
</section>
</a>
<% } %>
<p class="current">
<%= page.current%> / <%= page.total%>
</p>
<% if (page.next != 0) { %>
<a class="next" rel="next" href="<%= url_for(page.next_link) %>">
<section class="post next">
6 years ago
&nbsp;<%- __('post.next_page') %>&nbsp;<i class="fas fa-chevron-right" aria-hidden="true"></i>
6 years ago
</section>
</a>
<% } %>
</div>
</div>
7 years ago
<% } %>
<!-- 根据主题中的设置决定是否在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') %>
<% } %>