Skip to content

Commit 4bde007

Browse files
committed
Add pagination
1 parent c519b25 commit 4bde007

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{{#if (or page.previous page.next)}}
2+
<div class="pagination">
3+
{{#if page.previous}}
4+
<a class="pagination-previous" href="{{{relativize page.previous.url}}}">
5+
<span class="direction">← Previous</span>
6+
<span class="title">{{page.previous.title}}</span>
7+
</a>
8+
{{/if}}
9+
{{#if page.next}}
10+
<a class="pagination-next" href="{{{relativize page.next.url}}}">
11+
<span class="direction">Next →</span>
12+
<span class="title">{{page.next.title}}</span>
13+
</a>
14+
{{/if}}
15+
</div>
16+
{{/if}}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<div class="toolbar" role="navigation">
2+
{{> nav-toggle}}
3+
{{#with site.homeUrl}}
4+
<a href="{{{relativize this}}}" class="home-link{{#if @root.page.home}} is-current{{/if}}"></a>
5+
{{/with}}
6+
{{> breadcrumbs}}
7+
{{> page-versions}}
8+
{{> pagination}}
9+
</div>

0 commit comments

Comments
 (0)