~xdavidwu/xdavidwu.link

57b60e79e1b0bec8b6a03d80cea8ae698f688b59 — iBug ♦ 4 years ago 763decc
Use first_page_path from Paginate V2 if available (#2431)

1 files changed, 1 insertions(+), 1 deletions(-)

M _includes/paginator.html
M _includes/paginator.html => _includes/paginator.html +1 -1
@@ 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 %}