Site

Provides access to basic information about the account.

Returns an array of all the root pages of the site. 

Usage

{{ site.children }}

Example

{% for item in site.children %}
  <li><a href='{{ item.url }}'>{{ item.name }}</a></li>
{% endfor %}

Returns the name of your CMS.

Usage

{{ page.site.cms_name }}

Example

Powered by {{ page.site.cms_name }}

Returns the URL to your CMS.

Usage

{{ page.site.cms_url }}

Example

Powered by
<a href="{{ page.site.cms_url }}">
  {{ page.site.cms_name }}
</a>

Returns an array of all the hidden root pages.  

Usage

{{ site.hidden_children }}

Example

{% if site.hidden_children.size > 0 %}
  This site has {{ site.hidden_children.size }} hidden root-level pages.
{% endif %}

Returns the name of the account.

Usage

{{ page.site.name }}

Example

<h1>{{ page.site.name }}</h1>

Returns the account's domain and sub-domain if set, otherwise returns the site URL as a sub-domain.

Usage

{{ page.site.url }}

Example

<h1>
  <a href="{{ page.site.url }}">{{ page.site.name }}</a>
</h1>

Returns the account's unique sub-domain (chosen upon sign-up).

Usage

{{ page.site.url_id }}

Returns an array of all the visible root pages.  

Usage

{{ site.visible_children }}

Example

{% for item in site.visible_children %}
  <li><a href='{{ item.url }}'>{{ item.name }}</a></li>
{% endfor %}

Returns the current year.

Usage

{{ page.site.year }}

Example

&copy; {{ page.site.year }} {{ page.site.name }}