diff options
author | jeffreytse <jeffreytse.mail@gmail.com> | 2020-07-12 17:39:23 +0800 |
---|---|---|
committer | jeffreytse <jeffreytse.mail@gmail.com> | 2020-07-12 17:39:23 +0800 |
commit | 5b605ecabb02bc9aac20f2649b38ab9467212e43 (patch) | |
tree | 69aa691dd61e5a01d8c00c55a359ecf7f2ead693 /_includes/views | |
parent | 16922b8ac6cb877d72294cddcb0c44d8864785b1 (diff) |
feat: change paginator style
Diffstat (limited to '_includes/views')
-rw-r--r-- | _includes/views/paginator.html | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/_includes/views/paginator.html b/_includes/views/paginator.html index 269c20b..0e03df9 100644 --- a/_includes/views/paginator.html +++ b/_includes/views/paginator.html @@ -3,19 +3,23 @@ {% endif %} {% if paginator.posts.size > 0 %} - <div class="pagination"> + <div class="paginator"> + <span class="previous"> {% if paginator.previous_page %} - <a href="{{ paginator.previous_page_path }}">« Prev</a> + <a href="{{ paginator.previous_page_path }}">Prev</a> {% else %} - <span>« Prev</span> + <span>Prev</span> {% endif %} + </span> - <span> {{ paginator.page }}/{{ paginator.total_pages }}</span> + <span class="indicator"> {{ paginator.page }}/{{ paginator.total_pages }}</span> + <span class="next"> {% if paginator.next_page %} - <a href="{{ paginator.next_page_path }}">Next »</a> + <a href="{{ paginator.next_page_path }}">Next</a> {% else %} - <span>Next »</span> + <span>Next</span> {% endif %} + </span> </div> {% endif %} |