I wrote the following template code to use metalsmith-paginate plugin.
<!-- using eco template engine -->
<% if @pagination.next: %>
<a class="button" href="<%= @getPath(@pagination.next) %>">NEXT ></a>
<% end %>
But this code does not work on last pagination page because last doc object has pagination.next property that refer self doc object.
This patch fix last doc object that has pagination.next doc object.
Hi @RobinThrift,
I wrote the following template code to use metalsmith-paginate plugin.
But this code does not work on last pagination page because last doc object has
pagination.next
property that refer self doc object. This patch fix last doc object that has pagination.next doc object.