Skip to main content

pages

All of the pages on a store.

Directly accessible in

  • Global

You can access a specific page through the pages object using the page's handle.

{{ pages.contact.title }}
{{ pages['about-us'].title }}

Output

Contact
About us
Anchor to Paginate the `pages` object

Paginate the pages object

You can paginate the pages object, allowing you to iterate over up to 50 pages at a time.

{% paginate pages by 2 -%}
{% for page in pages -%}
{{ page.title | link_to: page.url }}
{%- endfor %}

{{- paginate | default_pagination }}
{%- endpaginate %}

Output

<a href="/pages/about-us" title="">About us</a>
<a href="/pages/contact" title="">Contact</a>

<span class="page current">1</span> <span class="page"><a href="/services/liquid_rendering/resource?page=2" title="">2</a></span> <span class="next"><a href="/services/liquid_rendering/resource?page=2" title="">Next &raquo;</a></span>
Was this section helpful?