---
title: The pages global Liquid object is now iterable - Shopify developer changelog
description: >-
  Shopify’s developer changelog documents all changes to Shopify’s platform.
  Find the latest news and learn about new platform opportunities.
source_url:
  html: 'https://shopify.dev/changelog/the-pages-global-liquid-object-is-now-iterable'
  md: >-
    https://shopify.dev/changelog/the-pages-global-liquid-object-is-now-iterable.md
metadata:
  effectiveApiVersion: ''
  affectedApi: []
  primaryTag:
    displayName: Themes
    handle: dev_themes
  secondaryTag:
    displayName: Update
    handle: update
  indicatesActionRequired: false
  createdAt: '2021-05-21T14:57:42-04:00'
  postedAt: '2021-05-21T00:00:00-04:00'
  updatedAt: '2024-02-02T10:05:01-05:00'
  effectiveAt: '2021-05-21T00:00:00-04:00'
---

May 21, 2021

Tags:

* Themes

# The pages global Liquid object is now iterable

You can now iterate through [the global Liquid `pages` object](https://shopify.dev/docs/themes/liquid/reference/objects#pages), instead of only being able to directly reference known pages through their handle. This allows you to access a paginated pages listing of up to 50 items at a time and produce HTML that is conditional to the page data that is available.

You can return properties for a specific page using `{{ pages.pagename.propertyname }}`:

```liquid
<h1>{{ pages.about.title }}</h1>
<p>{{ pages.about.author }} says...</p>
<div>{{ pages.about.content }}</div>
<div class="hydrate" data-language="" data-content="You can also interate through up to 50 pages at a time with pagination:" data-markdown="remove"></div><pre class="hidden"><code class="language-">You can also interate through up to 50 pages at a time with pagination:</code></pre> liquid
<ul>
{%- paginate pages by 50 \-%}
	{%- for p in pages -%}
		<li>{{p.title}}</li>
	{%- endfor -%}
	{{ paginate | default\_pagination: next: 'Older', previous: 'Newer' }} 
{%- endpaginate \-%}
</ul>
```
