From c15807d91b9558c47df230bb43dd66be78dc18cb Mon Sep 17 00:00:00 2001 From: xdavidwu Date: Wed, 26 May 2021 20:21:17 +0800 Subject: [PATCH] use icons for pagination --- _includes/paginator.html | 24 +++++++++++++++++++----- _includes/post_pagination.html | 16 ++++++++++++---- 2 files changed, 31 insertions(+), 9 deletions(-) diff --git a/_includes/paginator.html b/_includes/paginator.html index bffa079..7bf9d06 100644 --- a/_includes/paginator.html +++ b/_includes/paginator.html @@ -5,12 +5,20 @@ {% comment %} Link for previous page {% endcomment %} {% if paginator.previous_page %} {% if paginator.previous_page == 1 %} -
  • {{ site.data.ui-text[site.locale].pagination_previous | default: "Previous" }}
  • +
  • + +
  • {% else %} -
  • {{ site.data.ui-text[site.locale].pagination_previous | default: "Previous" }}
  • +
  • + +
  • {% endif %} {% else %} -
  • +
  • + +
  • {% endif %} {% comment %} First page {% endcomment %} @@ -60,9 +68,15 @@ {% comment %} Link next page {% endcomment %} {% if paginator.next_page %} -
  • {{ site.data.ui-text[site.locale].pagination_next | default: "Next" }}
  • +
  • + +
  • {% else %} -
  • +
  • + +
  • {% endif %} diff --git a/_includes/post_pagination.html b/_includes/post_pagination.html index a93c627..7bffeea 100644 --- a/_includes/post_pagination.html +++ b/_includes/post_pagination.html @@ -1,14 +1,22 @@ {% if page.previous or page.next %} {% endif %} \ No newline at end of file -- 2.43.0