Skip to content

Commit

Permalink
Pagination multiconfig support
Browse files Browse the repository at this point in the history
Dynamic support for paginate path configurations.
  • Loading branch information
dbtek committed Jun 4, 2014
1 parent ad074dd commit d41558b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ <h2>
{% if paginator.previous_page == 1 %}
<a href="{{ site.BASE_PATH }}/">&larr; Newer</a>
{% else %}
<a href="{{ site.BASE_PATH }}/page{{ paginator.previous_page }}">&larr; Newer</a>
<a href="{{ site.BASE_PATH }}/{{ site.paginate_path | replace: ':num', paginator.previous_page }}">&larr; Newer</a>
{% endif %}
</li>
{% else %}
Expand All @@ -64,7 +64,7 @@ <h2>

{% if paginator.next_page %}
<li class="next">
<a href="{{ site.BASE_PATH }}/page{{ paginator.next_page }}">Older &rarr;</a>
<a href="{{ site.BASE_PATH }}/{{ site.paginate_path | replace: ':num', paginator.next_page }}">Older &rarr;</a>
</li>
{% else %}
<li class="next disabled">
Expand Down

0 comments on commit d41558b

Please sign in to comment.