GitHub Download

pagination.hbs partial

The pagination partial is responsible for rendering pagination links on your website's homepage, tag pages, and author pages:

{{> pagination}}

If you have not included a partials/pagination.hbs in your theme., then Publii will load the following default pagination.hbs file:

{{#if @pagination}}
        {{#if @pagination.previousPage}}
                <a href="{{@pagination.previousPageUrl}}">PREV</a>

        {{#each @pagination.pages}}
                {{#isCurrentPage @pagination.currentPage this}}
                    <a href="{{pageUrl @pagination.context this}}">

        {{#if @pagination.nextPage}}
                <a href="{{@pagination.nextPageUrl}}">NEXT</a>

        Page {{@pagination.currentPage}} of {{@pagination.totalPages}}


Get the latest Publii news, updates and more delivered directly to your email inbox

You can change your mind at any time by clicking the unsubscribe link in the footer of any email you receive from us, or by contacting us at By clicking below, you agree that we may process your information in accordance with our Privacy Policy.