Shopify Builds>Primitives>Liquid pagination

Liquid pagination

Definition

The paginate tag splits a collection, blog, search result or list into pages of a fixed size and exposes an object describing the ladder: the current position, the page links, and the next and previous pages. It runs on the server, so every page it produces is a real URL that renders with no JavaScript at all.

Documented at shopify.dev, the paginate tag.

How We've Used It

Paging is the part of a grid that's easy to get wrong twice. Our rule is that the server-rendered ladder stays, because those URLs are crawlable and they work with scripts off, and anything progressive layers on top of it rather than replacing it. Load-more re-fetches the same section at the next page and appends it, so active filters and sort carry forward on their own and one card renderer stays in charge of what a card looks like. Infinite scroll, where a client wants it, is a listener on that same button. The pagination object is also what a bundle grid hands to its script so it can extend itself without a second endpoint.

Builds Using It

Related Entities

Builds

Creator collab video listing driven by article metafields

A blog turned into a creator video index: each article is a creator record whose video address, platform and handle live in article metafields, rendered as a paginated grid of inline-playing cards that request no third-party iframe until someone presses play.

Nudestix

Collection page: three filter modes, in-grid promo blocks and infinite scroll

The live collection body here is vendor code from a paid premium theme. This page documents what that code does, how it is configured across a large template set, and where our own contribution to it begins and ends.

Three Ships

House pagination component with result counter for blog and collection grids

A self-contained `de_pagination` snippet: pill page buttons, prev and next arrows that become non-focusable spans at the ends of the range, and a computed result-range line, rendered by the blog index and the collection grid from one file.

LUS Brands

Tabbed multi-type search results page with faceted filtering

One query, three kinds of answer: a search section that counts products, articles and pages before it renders any of them, tabs between them, and keeps a set of SKUs out of the grid entirely.

Three Ships

Metafield-driven editorial article template (TSB blog)

A long-form article template assembled entirely from article metafields — deck, takeaways, science callouts, references, FAQ, author credentials, related reading and in-content commerce — in a single section with no theme-editor settings, so an editor never touches the theme to publish a fully structured post.

Three Ships