site Object

The current site that the user is accessing.

Attributes

Attribute Required Description
title Yes string Title of site.
created_at Yes date Records when site was created.
updated_at Yes date Records when data about the site record was last updated.
id Yes number ID of site.

Category

Global Objects

Description

Referring to a variable named site anywhere within your layouts or content templates will provide information about the site that the user is currently visiting.

      <footer>
        <p>
          Copyright &copy; {{ site.title }}. All rights reserved.
        </p>
      </footer>