Skip to content

Commit

Permalink
Fix multiple pagination links bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jose-zama committed Oct 31, 2015
1 parent dde2ed6 commit c218f56
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions _includes/pagination.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,18 @@

<div class="pagination">

{% if paginator.previous_page and paginator.next_page%}
<h4>
<a href="{{site.baseurl}}{{ paginator.previous_page_path }}" class="previous">Newer Posts</a> <a href="{{site.baseurl}}{{ paginator.next_page_path }}" class="next">Older Posts</a>
</h4>
{% endif %}

<h4>

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

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


</h4>

</div>

<!-- Pagination Links End -->

0 comments on commit c218f56

Please sign in to comment.