Skip to content

Instantly share code, notes, and snippets.

@nul800sebastiaan
Created November 16, 2014 11:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nul800sebastiaan/9ac50d5a473ef028725d to your computer and use it in GitHub Desktop.
Save nul800sebastiaan/9ac50d5a473ef028725d to your computer and use it in GitHub Desktop.
Paging
<section class="pagination-wrapper">
<nav class="pagination" role="pagination">
@if (Model.IsFirstPage == false)
{
<a class="newer-posts" href="?page=@Model.PreviousPage">&larr; Newer Posts</a>
}
<span class="page-number">Page <span class="number">@Model.Page</span> of <span class="number">@Model.TotalPages</span></span>
@if (Model.IsLastPage == false)
{
<a class="older-posts" href="?page=@Model.NextPage">Older Posts &rarr;</a>
}
</nav>
</section>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment