When invoked on a Paginate object, it sets the current page of the pagination.
By default, the current page
attribute of a Paginate object is inferred from the URL parameter given by page_param
(which defaults to "page"
). If the URL parameter is not present, page
defaults to 1
(first page of results).
{% assign countries = website.countries | page: 1 %}
{% assign orders = user.orders | page: request.params['order-page'] %}