diff options
author | Doge <[email protected]> | 2021-05-07 14:32:34 +0800 |
---|---|---|
committer | Doge <[email protected]> | 2021-05-07 14:32:34 +0800 |
commit | 99ca844e3e89e53e44e350001cb20cd91da95bbe (patch) | |
tree | c1bb3ff6c266383bff42f6ab920891e5639e4bd9 /layout/index.ejs | |
parent | a0e8729df4a987d2f1b84ccfdd0c15f203621f1f (diff) | |
download | chromate-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.ejs | 27 |
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 |