From 30a881eb4f00696876d4abb0d7a5ddc9ea8921ef Mon Sep 17 00:00:00 2001 From: XPoet Date: Fri, 20 Mar 2020 16:31:20 +0800 Subject: [PATCH] =?UTF-8?q?Remove:=20paginator=20=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=EF=BC=8C=E4=BC=98=E5=8C=96=20home-post=20=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layout/common/home-post.ejs | 19 ++++++++++++++++--- layout/common/paginator.ejs | 9 --------- source/css/common/home-post.styl | 18 ++++++++++++++++++ source/css/common/paginator.styl | 18 ------------------ source/css/style.styl | 1 - 5 files changed, 34 insertions(+), 31 deletions(-) delete mode 100644 layout/common/paginator.ejs delete mode 100644 source/css/common/paginator.styl diff --git a/layout/common/home-post.ejs b/layout/common/home-post.ejs index d77a059..0cd4fd4 100644 --- a/layout/common/home-post.ejs +++ b/layout/common/home-post.ejs @@ -21,9 +21,22 @@ <% }) %> + +
+ <% if (page.prev) { %> + + <% } %> + + <% if (page.next) { %> + + <% } %> +
<% } %> - - <%- partial('paginator') %> - \ No newline at end of file diff --git a/layout/common/paginator.ejs b/layout/common/paginator.ejs deleted file mode 100644 index 871b15a..0000000 --- a/layout/common/paginator.ejs +++ /dev/null @@ -1,9 +0,0 @@ - - -
- <%- paginator({ - prev_text: __('prev'), - next_text: __('next'), - escape: false - }) %> -
\ No newline at end of file diff --git a/source/css/common/home-post.styl b/source/css/common/home-post.styl index 317942a..f4c45c2 100644 --- a/source/css/common/home-post.styl +++ b/source/css/common/home-post.styl @@ -55,6 +55,24 @@ } } + + .paginator { + + padding-bottom 40px + + .page-number { + display none !important + } + + a.prev { + float left + } + + a.next { + float right + } + + } } diff --git a/source/css/common/paginator.styl b/source/css/common/paginator.styl deleted file mode 100644 index f8bbac1..0000000 --- a/source/css/common/paginator.styl +++ /dev/null @@ -1,18 +0,0 @@ -/* 分页器 */ -.paginator { - - padding-bottom 40px - - .page-number { - display none !important - } - - a.prev { - float left - } - - a.next { - float right - } - -} diff --git a/source/css/style.styl b/source/css/style.styl index eead4ff..7e7be42 100644 --- a/source/css/style.styl +++ b/source/css/style.styl @@ -13,6 +13,5 @@ @import "common/category-post.styl" @import "common/tag-post.styl" @import "common/site-info.styl" -@import "common/paginator.styl" @import "highlight" @import "variables.styl"