Use first_page_path from Paginate V2 if available (#2431)

This commit is contained in:
iBug ♦ authored and GitHub committed 2020-03-16 21:17:53 -04:00
1 parent eeecf26117
commit 4e25e5242e
1 file changed
+1 -1
+1 -1
View File
@@ -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 %}