|
|
@ -31,24 +31,34 @@ |
|
|
|
<% } %> |
|
|
|
<% } %> |
|
|
|
<% page.posts.each(function(post){ %> |
|
|
|
<% page.posts.each(function(post){ %> |
|
|
|
<div class='post-wrapper'> |
|
|
|
<div class='post-wrapper'> |
|
|
|
<%- partial('post', {post: post}) %> |
|
|
|
<%- partial('post', {post: post}) %> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<% }) %> |
|
|
|
<% }) %> |
|
|
|
</section> |
|
|
|
</section> |
|
|
|
|
|
|
|
|
|
|
|
<% if (page.total > 1) { %> |
|
|
|
<% if (page.total > 1) { %> |
|
|
|
<nav id="page-nav"> |
|
|
|
<br> |
|
|
|
<% if (page.prev != 0) { %> |
|
|
|
<div class="prev-next"> |
|
|
|
<a class="prev" rel="prev" href="<%= url_for(page.prev_link) %>"> |
|
|
|
<div class="prev-next"> |
|
|
|
<span class="icon icon-chevron-left"></span> |
|
|
|
<% if (page.prev != 0) { %> |
|
|
|
<span class="text">PREVIOUS</span> |
|
|
|
<a class="prev" rel="prev" href="<%= url_for(page.prev_link) %>"> |
|
|
|
</a> |
|
|
|
<section class="post prev" > |
|
|
|
<% } %> |
|
|
|
<i class="fa fa-chevron-left" aria-hidden="true"></i> 上一页 |
|
|
|
<% if (page.next != 0) { %> |
|
|
|
</section> |
|
|
|
<a class="next" rel="next" href="<%= url_for(page.next_link) %>"> |
|
|
|
</a> |
|
|
|
<span class="text">NEXT</span> |
|
|
|
<% } %> |
|
|
|
<span class="icon icon-chevron-right"></span> |
|
|
|
<p class="current"> |
|
|
|
</a> |
|
|
|
<%= page.current%> / <%= page.total%> |
|
|
|
<% } %> |
|
|
|
</p> |
|
|
|
</nav> |
|
|
|
<% if (page.next != 0) { %> |
|
|
|
|
|
|
|
<a class="next" rel="next" href="<%= url_for(page.next_link) %>"> |
|
|
|
|
|
|
|
<section class="post next"> |
|
|
|
|
|
|
|
下一页 <i class="fa fa-chevron-right" aria-hidden="true"></i> |
|
|
|
|
|
|
|
</section> |
|
|
|
|
|
|
|
</a> |
|
|
|
|
|
|
|
<% } %> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<% } %> |
|
|
|
<% } %> |
|
|
|