kasper
kasper copied to clipboard
fix pagination.html error
When I am using pagination, there is a 404 Not Found occur.
According to the Pagination-JekyllCN Docs ,
<div class="pagination">
{% if paginator.previous_page %}
<a href="/page{{ paginator.previous_page }}" class="previous">Previous</a>
{% else %}
<span class="previous">Previous</span>
{% endif %}
<span class="page_number ">Page: {{ paginator.page }} of {{ paginator.total_pages }}</span>
{% if paginator.next_page %}
<a href="/page{{ paginator.next_page }}" class="next">Next</a>
{% else %}
<span class="next ">Next</span>
{% endif %}
</div>
<a href="/page{{ paginator.next_page }}" class="next">Next</a>
is the correct setting.
After changing the pagination.html
and _config.yml
, the Next Page can work properly.
Thank you, this PR helped me fix my pagination
Thank you, this PR helped me fix my pagination
You are welcome.