Skip to content

Commit

Permalink
Fix wrong first_page_path because of hard-coded page:num (mmistak…
Browse files Browse the repository at this point in the history
  • Loading branch information
yusanshi authored and minyoongi96 committed Aug 26, 2024
1 parent abe4b8f commit 9c312a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion _includes/paginator.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{% if paginator.total_pages > 1 %}
<nav class="pagination">
{% assign first_page_path = paginator.first_page_path | default: site.paginate_path | replace: 'page:num', '' | replace: '//', '/' | relative_url %}
{% assign paginate_path_last = site.paginate_path | split: '/' | last %}
{% assign first_page_path = paginator.first_page_path | default: site.paginate_path | replace: paginate_path_last, '' | replace: '//', '/' | relative_url %}
<ul>
{% comment %} Link for previous page {% endcomment %}
{% if paginator.previous_page %}
Expand Down

0 comments on commit 9c312a2

Please sign in to comment.