blog/themes/chameleon/layout/_partial/archive.ejs

23 lines
510 B
Plaintext
Raw Permalink Normal View History

<% page.posts.each((post, i) => { %>
<section class="archives-wrap">
<div class="archives">
<%- partial('archive-post', { post }) %>
<% }) %>
<% if (page.posts.length) { %>
</div>
</section>
2018-09-10 09:21:59 +00:00
<% } %>
<% if (page.total > 1) { %>
2018-09-10 09:21:59 +00:00
<nav id="page-nav" class="page-nav">
<%
2019-10-24 04:03:12 +00:00
const prev_text = '&laquo; ' + __('prev')
const next_text = __('next') + ' &raquo;'
%>
2018-09-10 09:21:59 +00:00
<%- paginator({
prev_text: prev_text,
2019-10-24 04:03:12 +00:00
next_text: next_text,
escape: false
2018-09-10 09:21:59 +00:00
}) %>
</nav>
<% } %>