blog/themes/chameleon/layout/_partial/post/nav.ejs

21 lines
604 B
Plaintext
Raw Normal View History

<% if (post.prev || post.next) { %>
2018-09-10 09:21:59 +00:00
<nav id="article-nav" class="article-nav">
<span class="article-nav-link-wrap newer">
<% if (post.prev) { %>
<strong><%= __('newer') %></strong>
<a href="<%- url_for(post.prev.path) %>">
<div class="article-nav-title"><%= post.prev.title %></div>
2018-09-10 09:21:59 +00:00
</a>
<% } %>
</span>
<span class="article-nav-link-wrap older">
<% if (post.next) { %>
<strong><%= __('older') %></strong>
<a href="<%- url_for(post.next.path) %>">
2018-09-10 09:21:59 +00:00
<div class="article-nav-title"><%= post.next.title %></div>
</a>
<% } %>
</span>
2018-09-10 09:21:59 +00:00
</nav>
<% } %>