Skip to content

Commit 4e25e52

Browse files
authoredMar 17, 2020
Use first_page_path from Paginate V2 if available (mmistakes#2431)
1 parent eeecf26 commit 4e25e52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎_includes/paginator.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{% if paginator.total_pages > 1 %}
22
<nav class="pagination">
3-
{% assign first_page_path = site.paginate_path | replace: 'page:num', '' | replace: '//', '/' | relative_url %}
3+
{% assign first_page_path = paginator.first_page_path | default: site.paginate_path | replace: 'page:num', '' | replace: '//', '/' | relative_url %}
44
<ul>
55
{% comment %} Link for previous page {% endcomment %}
66
{% if paginator.previous_page %}

0 commit comments

Comments
 (0)
Please sign in to comment.