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

21 lines
604 B
Plaintext
Raw Permalink Normal View History

2024-09-28 06:31:52 +00:00
<% if (post.prev || post.next) { %>
<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>
</a>
<% } %>
</span>
<span class="article-nav-link-wrap older">
<% if (post.next) { %>
<strong><%= __('older') %></strong>
<a href="<%- url_for(post.next.path) %>">
<div class="article-nav-title"><%= post.next.title %></div>
</a>
<% } %>
</span>
</nav>
<% } %>