Skip to content
This repository has been archived by the owner on May 12, 2019. It is now read-only.

Commit

Permalink
added rel attribute in pagination elements
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Aug 14, 2015
1 parent b877428 commit 530174e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions partials/pagination.hbs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<nav class="pagination" role="navigation">
{{#if prev}}
<a class="posts newer btn small" href="{{page_url prev}}#open">&larr; Newer Posts</a>
<a rel="next" class="posts newer btn small" href="{{page_url prev}}#open">&larr; Newer Posts</a>
{{/if}}
<span class="posts index">Page {{page}} of {{pages}}</span>
{{#if next}}
<a class="posts older btn small" href="{{page_url next}}#open">Older Posts &rarr;</a>
<a rel="prev" class="posts older btn small" href="{{page_url next}}#open">Older Posts &rarr;</a>
{{/if}}
</nav>
4 changes: 2 additions & 2 deletions post.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@

<div class="post related">
{{#prev_post}}
<a id="prev-btn" class="btn small square" href="{{url}}">← {{title}}</a>
<a rel="prev" id="prev-btn" class="btn small square" href="{{url}}">← {{title}}</a>
{{/prev_post}}

{{#next_post}}
<a id="next-btn" class="btn small square" href="{{url}}">{{title}} →</a>
<a rel="next" id="next-btn" class="btn small square" href="{{url}}">{{title}} →</a>
{{/next_post}}
</div>

Expand Down

0 comments on commit 530174e

Please sign in to comment.