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
handle
Returns the handle.
seo_description
Returns description for search engines.
seo_title
Returns title for search engines.
seo_keywords
Returns keywords for search engines.
title
Returns the title.
id
Returns the id.
is_static
Returns true if this page was not built with the theme editor and has static content.
content
Returns the static page content.
created_at
Returns the date when this page was created.
updated_at
Returns the date when this page was last updated at.