nav.ejs 742 B

12345678910111213141516171819202122
  1. <% if (post.prev || post.next){ %>
  2. <nav id="article-nav">
  3. <% if (post.prev){ %>
  4. <a href="<%- url_for(post.prev.path) %>" id="article-nav-newer" class="article-nav-link-wrap">
  5. <strong class="article-nav-caption"><%= __('newer') %></strong>
  6. <div class="article-nav-title">
  7. <% if (post.prev.title){ %>
  8. <%= post.prev.title %>
  9. <% } else { %>
  10. (no title)
  11. <% } %>
  12. </div>
  13. </a>
  14. <% } %>
  15. <% if (post.next){ %>
  16. <a href="<%- url_for(post.next.path) %>" id="article-nav-older" class="article-nav-link-wrap">
  17. <strong class="article-nav-caption"><%= __('older') %></strong>
  18. <div class="article-nav-title"><%= post.next.title %></div>
  19. </a>
  20. <% } %>
  21. </nav>
  22. <% } %>