Skip to content

Commit 1172d3d

Browse files
committed
This fixes the pagination links without special edge cases.
1 parent b1ef628 commit 1172d3d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

blog/index.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,13 @@ <h1 class="post-title">
2121

2222
<div class="pagination">
2323
{% if paginator.next_page %}
24-
<a class="pagination-item older" href="{{ site.baseurl }}blog/page{{paginator.next_page}}">Older</a>
24+
<a class="pagination-item older" href="{{ paginator.next_page_path }}">Older</a>
2525
{% else %}
2626
<span class="pagination-item older">Older</span>
2727
{% endif %}
2828
{% if paginator.previous_page %}
2929
{% if paginator.page == 2 %}
30-
<a class="pagination-item newer" href="{{ site.baseurl }}blog">Newer</a>
31-
{% else %}
32-
<a class="pagination-item newer" href="{{ site.baseurl }}blog/page{{paginator.previous_page}}">Newer</a>
30+
<a class="pagination-item newer" href="{{ paginator.previous_page_path }}">Newer</a>
3331
{% endif %}
3432
{% else %}
3533
<span class="pagination-item newer">Newer</span>

0 commit comments

Comments
 (0)