|
@@ -15,20 +15,20 @@
|
|
<% page.posts.each(function(post, i){ %>
|
|
<% page.posts.each(function(post, i){ %>
|
|
<% var year = post.date.year(); %>
|
|
<% var year = post.date.year(); %>
|
|
<% if (last != year){ %>
|
|
<% if (last != year){ %>
|
|
- <% if (last != null){ %>
|
|
|
|
- </div></section>
|
|
|
|
- <% } %>
|
|
|
|
<% last = year; %>
|
|
<% last = year; %>
|
|
- <section class="archives-wrap">
|
|
|
|
<div class="archive-year-wrap">
|
|
<div class="archive-year-wrap">
|
|
<i class="fa fa-calendar"></i>
|
|
<i class="fa fa-calendar"></i>
|
|
<a href="<%- url_for('archives/' + year) %>" class="archive-year"><%= year %></a>
|
|
<a href="<%- url_for('archives/' + year) %>" class="archive-year"><%= year %></a>
|
|
</div>
|
|
</div>
|
|
- <div class="archives">
|
|
|
|
<% } %>
|
|
<% } %>
|
|
<%- partial('article', {post: post, index: true}) %>
|
|
<%- partial('article', {post: post, index: true}) %>
|
|
<% }) %>
|
|
<% }) %>
|
|
- <% if (page.posts.length){ %>
|
|
|
|
- </div></section>
|
|
|
|
|
|
+ <% if (page.total > 1){ %>
|
|
|
|
+ <nav id="page-nav">
|
|
|
|
+ <%- paginator({
|
|
|
|
+ prev_text: '« ' + __('nav.prev'),
|
|
|
|
+ next_text: __('nav.next') + ' »'
|
|
|
|
+ }) %>
|
|
|
|
+ </nav>
|
|
<% } %>
|
|
<% } %>
|
|
<% } %>
|
|
<% } %>
|