Skip to content

Instantly share code, notes, and snippets.

@abr4xas
Last active November 17, 2015 19:51
Show Gist options
  • Save abr4xas/52bb102b21baed187524 to your computer and use it in GitHub Desktop.
Save abr4xas/52bb102b21baed187524 to your computer and use it in GitHub Desktop.
Bootstrap tumblr pagination
<nav>
<ul class="pagination">
{block:PreviousPage}
<li>
<a href="{PreviousPage}" aria-label="Previous">
<span aria-hidden="true">&laquo;</span>
</a>
</li>
{/block:PreviousPage}
{block:JumpPagination length="5"}
{block:CurrentPage}
<li class="active">
<a href="{URL}">
{PageNumber}
</a>
</li>
{/block:CurrentPage}
{block:JumpPage}
<li>
<a href="{URL}">
{PageNumber}
</a>
</li>
{/block:JumpPage}
{/block:JumpPagination}
{block:NextPage}
<li>
<a href="{NextPage}" aria-label="Next">
<span aria-hidden="true">&raquo;</span>
</a>
</li>
{/block:NextPage}
</ul>
</nav>
{/block:Pagination}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment