kasper icon indicating copy to clipboard operation
kasper copied to clipboard

fix pagination.html error

Open IcingTomato opened this issue 3 years ago • 2 comments

image

image

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.

IcingTomato avatar May 30 '21 15:05 IcingTomato

Thank you, this PR helped me fix my pagination

ForensicITGuy avatar Jan 02 '22 04:01 ForensicITGuy

Thank you, this PR helped me fix my pagination

You are welcome.

IcingTomato avatar Jul 21 '22 11:07 IcingTomato