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

Multiple pagination links #34

Closed
jose-zama opened this issue Oct 31, 2015 · 1 comment
Closed

Multiple pagination links #34

jose-zama opened this issue Oct 31, 2015 · 1 comment
Labels

Comments

@jose-zama
Copy link
Contributor

Hello,

There is a tiny bug with pagination.

Issue: When having more than 2 pages, the pagination shows two "newer posts" links and two "older posts" links.

badpagination

Proposed Solution: Update pagination.html to:

<div class="pagination">

  <h4>

  {% if paginator.previous_page %}
    <a href="{{site.baseurl}}{{ paginator.previous_page_path }}" class="previous">Newer Posts</a>
  {% endif %}

  {% if paginator.next_page %}
    <a href="{{site.baseurl}}{{ paginator.next_page_path }}" class="next">Older Posts</a>
  {% endif %}

  </h4>

</div>
@jose-zama jose-zama changed the title B Multiple pagination links Oct 31, 2015
@le4ker le4ker added the bug label Oct 31, 2015
le4ker pushed a commit that referenced this issue Oct 31, 2015
@le4ker
Copy link
Owner

le4ker commented Nov 1, 2015

That's a regression! Well spotted! 😄

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

No branches or pull requests

2 participants