page
Object
The current page that the user is accessing.
Attributes
Attribute | Required | Description |
---|---|---|
page_type
|
Yes |
string Type of page. Acceptable values are home , page ,
not_found , error , or search .
|
path
|
Yes |
string Site-root-relative URL path
of page.
|
title
|
Yes |
string Title to be used in the <title> tag. See the
page_title object
for a shortcut.
|
description
|
No |
string Description to be used in the <meta> description tag.
See the
page_description
object for a shortcut.
|
keywords
|
No |
string List of keywords to be used in the <meta> keywords
tag. See the
page_keywords
object for a shortcut.
|
search_engine_indexable?
|
Yes |
boolean If set to true , indicates a value of index in
the robots <meta> tag. See the
page_robots object
for a shortcut.
|
search_engine_followable?
|
Yes |
boolean If set to true , indicates a value of follow
in the robots <meta> tag. See the
page_robots object
for a shortcut.
|
canonical_url
|
No |
string Value to display in a <link rel="canonical">
tag. See the
canonical_url
object for a shortcut.
|
home?
|
Yes |
boolean This value will be true if the page_type is
home .
|
published_at
|
No |
date Timestamp recording when page was first published (nil if
never published).
|
created_at
|
Yes |
date Timestamp recording when page was created.
|
updated_at
|
Yes |
date Timestamp recording when page was last updated.
|
id
|
Yes |
number ID of page.
|
Category
Description
Referring to a variable named page
anywhere within your
layouts or
content templates will provide
information about the page that the user is currently viewing.