FleekSiteFLEEKSITE
On this section
Liquid reference

Objects.

Before your template renders, FleekSite builds a context: a set of objects describing the site, the content being rendered, the request and the environment. These are the variables every template can read.

The top-level variables are site, page and post, env, current_user, params, cookies, referer, flash, bits and bit_list, post_types, core_site_categories, time / day / month / year, image_url, browser, vapid_public_key and, when a template record is in play, template. All keys are snake_case.

site

The full site record, plus computed aliases. Common fields:

FieldValue
site.nameThe site name.
site.titleThe meta title, falling back to the name.
site.descriptionThe meta description.
site.keywordsThe meta keywords.
site.phone / site.mobileThe contact number.
site.currencyThe currency code, defaulting to USD.
site.languageThe language code, defaulting to en.
site.dataA free-form object for custom site values.
site.render_modeThe render mode, compat or standard.

The whole record is present, so any column on the site is readable here. See Sites.

page and post

When a post is being rendered, its record is available as both page and post, and its fields are also merged at the top level, so {{ page.title }}, {{ post.title }} and {{ title }} all work. It is also aliased by its type: a product (type 3) is readable as {{ product }}. Beyond the raw columns, the object carries:

FieldValue
page.authorThe author, from the linked user (a safe subset of fields, never credentials).
page.mediaThe post's images, video and audio, as an array.
page.primary_mediaThe lead image.
page.variantsProduct variants, as an array.
page.tagsThe tags, as an array.
page.data / page.metaFree-form objects for custom and SEO values.
page.priceA two-decimal string, floored to 0.00 below one.
page.permalinkThe path, cleaned to a leading slash.
page.comments, page.previous_post, page.next_postRelated records, when loaded.

See Posts and types for the type list and aliasing.

env

The environment and request paths.

FieldValue
env.root_urlThe site's canonical origin, for example https://yoursite.com.
env.api_urlThe API base, root_url plus /api/v1.
env.request_pathThe current path.
env.request_pathsThe path split into segments.
env.query_stringThe raw query string.
env.image_urlThe image CDN base.
env.platformPlatform details: url, admin_url, name, email.
env.cookiesThe request cookies, as a map.

current_user

The signed-in user, or null when nobody is signed in. Its role is the user's role on this specific site. Use it to gate content:

{% if current_user %}
  Welcome back, {{ current_user.first_name }}.
{% else %}
   href="/login">Sign in>
{% endif %}

bits and bit_list

bits is a map of your site bits grouped by category, as { category: { name: value } }, so {{ bits.general.tagline }} reads one value. bit_list is the same data as lists, for iterating. See Bits.

Request data

ObjectValue
paramsThe query-string parameters, as a map. {{ params.q }} reads ?q=....
cookiesThe request cookies.
refererThe referring URL, if any.
flashA one-render message map, used on error pages.

Query parameters flow into a {% collection %} query, but a denylist of privilege and identity parameters is never taken from the URL, and visitor paging is capped. See The collection tag.

Taxonomy and time

ObjectValue
post_typesThe list of content type names.
core_site_categoriesThe site's categories.
timeThe current time as an ISO string (UTC).
day / month / yearThe current day, month (from 1) and year.
image_urlThe image CDN base (also on env).
browserThe request user-agent string.
vapid_public_keyThe public key for push subscription. See PWA and push.
templateThe current template record, when one is in context.