Created
January 13, 2015 06:06
-
-
Save tgdev/e95e73aab61dee1574c5 to your computer and use it in GitHub Desktop.
A demo of middleman pagination in action taken from my blog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="article pagination"> | |
<p class="pagination__summary">Articles <%= page_start %> to <%= page_end %> of <%= articles.length %></p> | |
<ul class="list--clean list--pagination"> | |
<% if prev_page %> | |
<li class="prev"> | |
<a href="<%= prev_page.url %>">Older articles</a> | |
</li> | |
<% end %> | |
<% if next_page %> | |
<li class="next"> | |
<a href="<%= next_page.url %>">Newer articles</a> | |
</li> | |
<% end %> | |
</ul> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment