Page.liquid

From Spiffy Stores Knowledge Base

This template renders a page or an article

This is usually the simplest of templates to build, and will consist of just the page content.

For example:

<div id="page">
  <h1>{{ page.title }}</h1>
  <div class="article textile">
    {{ page.content }}
  </div>
</div>

Variables

In page.liquid you have access to the following variables:

  • page - The current page or article being displayed.
  • handle - The handle of the page.

Note: The page variable may be either a page or an article. You can use the type attribute to distinguish which is which.

{{ page.type }} returns either 'page' or 'article'

In addition, all global variables are available.