summaryrefslogtreecommitdiff
path: root/layout/index.ejs
diff options
context:
space:
mode:
authorDoge <[email protected]>2021-05-07 14:32:34 +0800
committerDoge <[email protected]>2021-05-07 14:32:34 +0800
commit99ca844e3e89e53e44e350001cb20cd91da95bbe (patch)
treec1bb3ff6c266383bff42f6ab920891e5639e4bd9 /layout/index.ejs
parenta0e8729df4a987d2f1b84ccfdd0c15f203621f1f (diff)
downloadchromate-99ca844e3e89e53e44e350001cb20cd91da95bbe.tar.gz
chromate-99ca844e3e89e53e44e350001cb20cd91da95bbe.tar.bz2
chromate-99ca844e3e89e53e44e350001cb20cd91da95bbe.zip
Add footer and page navigator support
Diffstat (limited to 'layout/index.ejs')
-rw-r--r--layout/index.ejs27
1 files changed, 26 insertions, 1 deletions
diff --git a/layout/index.ejs b/layout/index.ejs
index 1857e73..ae1db98 100644
--- a/layout/index.ejs
+++ b/layout/index.ejs
@@ -44,7 +44,32 @@
</div>
<% } %>
</div>
-
</article>
<% }) %>
+
+ <!-- Page navigation -->
+ <% if (page.prev || page.next) { %>
+ <div class="nav">
+ <% if (page.prev) { %>
+ <div class="nav-prev">
+ <a href="<%- url_for(page.prev_link) %>" class="nav-link">
+ <span class="nav-label">
+ Prev
+ <i class="fa fa-chevron-left"></i>
+ </span>
+ </a>
+ </div>
+ <% } %>
+ <% if (page.next) { %>
+ <div class="nav-next">
+ <a href="<%- url_for(page.next_link) %>" class="nav-link">
+ <span class="nav-label">
+ Next
+ <i class="fa fa-chevron-right"></i>
+ </span>
+ </a>
+ </div>
+ <% } %>
+ </div>
+ <% } %>
</section> \ No newline at end of file