From 832ebd0038ccecbd6bbd5baa337c8d59e19542f7 Mon Sep 17 00:00:00 2001 From: Doge Date: Sun, 9 May 2021 15:18:10 +0800 Subject: Add pagination support --- layout/_partial/header.ejs | 2 +- layout/index.ejs | 64 +++++++++++++++++++++------------------------- source/css/style.css | 9 +++++++ 3 files changed, 39 insertions(+), 36 deletions(-) diff --git a/layout/_partial/header.ejs b/layout/_partial/header.ejs index f7fef30..c6c1a9f 100644 --- a/layout/_partial/header.ejs +++ b/layout/_partial/header.ejs @@ -1,4 +1,4 @@ -
+
- + + - <% }); %> + <% }); %> + + + <% if (page.prev || page.next) { %> +
+
+ +
+
+ <% } %>
- - - - - \ No newline at end of file diff --git a/source/css/style.css b/source/css/style.css index a5c5377..c7743db 100644 --- a/source/css/style.css +++ b/source/css/style.css @@ -19,4 +19,13 @@ pre { .navbar-brand .navbar-item:hover { background-color: inherit !important; +} + +.post-entry { + margin-bottom: 3rem !important; +} + +.pagination-bar { + padding-left: 0.25rem; + padding-right: 0.25rem; } \ No newline at end of file -- cgit v1.2.3