Open ghost opened 3 years ago
Hi @csmov, do you have any live example/theme that uses this feature? Anyway, it looks interesting to implement it though
Hi @csmov, do you have any live example/theme that uses this feature? Anyway, it looks interesting to implement it though
Exemple from this theme https://theme-next.js.org/next-8-2-1-released/
.ejs from hexo-theme-landscape this should work
<% if (post.prev || post.next){ %>
<nav id="article-nav">
<% if (post.prev){ %>
<a href="<%- url_for(post.prev.path) %>" id="article-nav-newer" class="article-nav-link-wrap">
<strong class="article-nav-caption"><%= __('newer') %></strong>
<div class="article-nav-title">
<% if (post.prev.title){ %>
<%= post.prev.title %>
<% } else { %>
(no title)
<% } %>
</div>
</a>
<% } %>
<% if (post.next){ %>
<a href="<%- url_for(post.next.path) %>" id="article-nav-older" class="article-nav-link-wrap">
<strong class="article-nav-caption"><%= __('older') %></strong>
<div class="article-nav-title"><%= post.next.title %></div>
</a>
<% } %>
</nav>
<% } %>
tnx for beautiful theme
Look good. It would be a nice feature for Minima. Anyway, I plan to implement it in the next release.
Need add function Next & Prev post in footer post
Exemple from njk:
_config.yml
post_navigation: left or right