Skip to content

Commit 6a16f93

Browse files
authored
Merge pull request #4 from calcode/copilot/fix-page-links-functionality
Fix pagination links to use correct /page/N/ URL format
2 parents cb6cfb8 + 5c8e82b commit 6a16f93

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

index.html

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

2121
<div class="pagination">
2222
{% if paginator.next_page %}
23-
<a class="pagination-item older" href="{{ site.baseurl }}page{{paginator.next_page}}">Older</a>
23+
<a class="pagination-item older" href="{{ site.baseurl }}page/{{paginator.next_page}}/">Older</a>
2424
{% else %}
2525
<span class="pagination-item older">Older</span>
2626
{% endif %}
2727
{% if paginator.previous_page %}
2828
{% if paginator.page == 2 %}
2929
<a class="pagination-item newer" href="{{ site.baseurl }}">Newer</a>
3030
{% else %}
31-
<a class="pagination-item newer" href="{{ site.baseurl }}page{{paginator.previous_page}}">Newer</a>
31+
<a class="pagination-item newer" href="{{ site.baseurl }}page/{{paginator.previous_page}}/">Newer</a>
3232
{% endif %}
3333
{% else %}
3434
<span class="pagination-item newer">Newer</span>

0 commit comments

Comments
 (0)