Page
The page
object represents a static or dynamic page in the store, including its content, SEO information, and hierarchy.
Usage Example
{%- comment -%} Render a page with title and content {%- endcomment -%}
<article>
<h1>{{ page.title }}</h1>
<div>{{ page.content }}</div>
<footer>
<small>Created at: {{ page.created_at | date: '%Y-%m-%d' }}</small>
<small>Last updated: {{ page.updated_at | date: '%Y-%m-%d' }}</small>
</footer>
</article>
{%- comment -%} List child pages if any {%- endcomment -%}
{% if page.pages.size > 0 %}
<ul>
{% for child in page.pages %}
<li><a href="{{ child.handle | link }}">{{ child.title }}</a></li>
{% endfor %}
</ul>
{% endif %}
Properties
content
Returns the static page content.
created_at
Returns the date when this page was created.
handle
Returns the handle for the page.
id
Returns the unique identifier for the page.
is_static
Returns true if this page was not built with the theme editor and has static content.
seo_description
Returns the SEO description for search engines.
seo_keywords
Returns the SEO keywords for search engines.
seo_title
Returns the SEO title for search engines.
title
Returns the title of the page.
updated_at
Returns the date when this page was last updated.
Last updated on