Overview

Represents a CMS page.

The current page is available as page in the CMS.

Properties

page.content

This returns the rendered page content and is normally used inside layouts.

page.title

Returns the title of the page.

page.url

Returns the url property of the page.

page.meta_title

Returns the meta title of the page.

page.meta_description

Returns the meta description of the page.

page.meta_keywords

Returns the meta keywords of the page.

page.assigns

Provides access to liquid variables that were {% assign %}-ed while rendering the page.

The main use case is to be able to pass data from the page to the layout. For example, if you set the variable myvar to the value 42 inside your page body with {% assign myvar = 42 %}, you can reference that variable in the layout using {{ page.assigns.myvar }}.

page.custom