Skip to content

Commit

Permalink
Use first_page_path from Paginate V2 if available (mmistakes#2431)
Browse files Browse the repository at this point in the history
  • Loading branch information
iBug authored Mar 17, 2020
1 parent 92f4074 commit 09f29a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _includes/paginator.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% if paginator.total_pages > 1 %}
<nav class="pagination">
{% assign first_page_path = site.paginate_path | replace: 'page:num', '' | replace: '//', '/' | relative_url %}
{% assign first_page_path = paginator.first_page_path | default: site.paginate_path | replace: 'page:num', '' | replace: '//', '/' | relative_url %}
<ul>
{% comment %} Link for previous page {% endcomment %}
{% if paginator.previous_page %}
Expand Down

0 comments on commit 09f29a1

Please sign in to comment.