Skip to content

Instantly share code, notes, and snippets.

@tgdev
Created January 13, 2015 06:06
Show Gist options
  • Save tgdev/e95e73aab61dee1574c5 to your computer and use it in GitHub Desktop.
Save tgdev/e95e73aab61dee1574c5 to your computer and use it in GitHub Desktop.
A demo of middleman pagination in action taken from my blog
<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