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.

49 lines
1.5 KiB

7 years ago
<% if (is_tag()) { %>
6 years ago
<script>
6 years ago
window.subData= { title:'<%= theme.widgets.tagcloud.title %> : <%= 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:'<%= theme.widgets.categories.title %> : <%= page.category %>'}
6 years ago
</script>
7 years ago
<% } %>
6 years ago
7 years ago
<section class="post-list">
6 years ago
<% page.posts.each(function(post){ %>
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;上一页&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;下一页&nbsp;<i class="fas fa-chevron-right" aria-hidden="true"></i>
6 years ago
</section>
</a>
<% } %>
</div>
</div>
7 years ago
<% } %>