Skip to content

Commit 10f3397

Browse files
committed
Merge pull request #12 from PaulAdamDavis/next-prev
Add next & previous post links
2 parents 92cc73d + 32f4451 commit 10f3397

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"name": "Roon",
3-
"version": "1.0"
3+
"version": "1.1"
44
}

post.hbs

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,21 @@
101101
</div>
102102
</div>
103103

104-
{{/post}}
104+
<div id="post_nav">
105+
<nav role="navigation">
106+
{{#next_post}}
107+
<a href="{{url}}" id="post_next" title="Next Post">
108+
<span aria-hidden="true" data-icon=">"></span>
109+
The Newer Post
110+
</a>
111+
{{/next_post}}
112+
{{#prev_post}}
113+
<a href="{{url}}" id="post_prev" title="Previous Post">
114+
Something Older
115+
<span aria-hidden="true" data-icon=">"></span>
116+
</a>
117+
{{/prev_post}}
118+
</nav>
119+
</div>
105120

106-
{{!-- TODO: Add next/prev posts --}}
121+
{{/post}}

0 commit comments

Comments
 (0)