page

The page object has the following attributes:

page.author

Returns the author of a page.

page.content

Returns the content of a page.

page.handle

Returns the handle of the page.

page.id

Returns the id of the page.

page.published_at

Returns the timestamp of when the page was created. Use the date filter to format the timestamp.

page.template_suffix

Returns the name of the custom page template assigned to the page, without the page. prefix nor the .liquid suffix. Returns nil if a custom template is not assigned to the page.

Input
on page.contact.liquid
{{ page.template_suffix }}
Output
haravan_contact

page.title

Returns the title of a page.

page.url

Returns the relative URL of the page.

Input
{{ page.url }}
Output
/pages/about-us

results matching ""

    No results matching ""