Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix pagination.html error #55

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

IcingTomato
Copy link

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.

@ForensicITGuy
Copy link

Thank you, this PR helped me fix my pagination

@IcingTomato
Copy link
Author

Thank you, this PR helped me fix my pagination

You are welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants