Use first_page_path from Paginate V2 if available (#2431)
This commit is contained in:
parent
eeecf26117
commit
4e25e5242e
1 changed files with 1 additions and 1 deletions
|
@ -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 %}
|
||||
|
|
Loading…
Reference in a new issue