This article covers the core global objects available on every Localist Events template. The Site object and its related nested objects control platform-wide settings, branding, features, and authentication across the entire theme. These objects are always available without needing to be explicitly passed to templates.
The following objects are covered in this article:
Site — Platform configuration, branding, and nested settings
User — Current visitor and user-specific data
School — Organizational hierarchy parent (academic institutions)
Campus — Organizational hierarchy child (branches or locations)
Site Format — Localized date/time formatting patterns
Theme — Theming configuration and navigation
Navigation Link — Header navigation link structure
The Site Object
The Site object is the primary global configuration object. It is accessed as site and contains settings for branding, authentication, features, URLs, and nested configuration objects.
Identity and Branding
Variable
Type
Description
site.name
String
The platform name.
site.contact_email
String
Platform contact email.
site.home_link
String
URL to the platform home page.
site.country
String
Default country setting.
site.distance_unit
String
Unit for distance measurements (e.g., “mi” or “km”).
site.has_logo
Boolean
Whether the site has a custom logo configured.
site.logo_url
String
URL to the standard logo.
site.emphasis_logo_url
String
URL to the emphasized/alternate logo.
site.emphasis_logo_srcset
String
Responsive image srcset for the emphasized logo.
site.emphasis_logo_width
Integer
Width of the emphasized logo in pixels.
site.emphasis_logo_height
Integer
Height of the emphasized logo in pixels.
site.mail_logo_url
String
URL to the logo used in email templates.
site.mail_logo_height
Integer
Height of the email logo in pixels.
site.header_foreground_color
String
Text/foreground color for the header (hex code).
site.header_background_color
String
Background color for the header (hex code).
site.header_colors
Hash
Object containing all header color settings.
site.mail_header_foreground_color
String
Header text color used in email templates.
site.mail_header_background_color
String
Header background color used in email templates.
site.show_navigation
Boolean
Whether the top navigation bar is visible.
site.show_appstore_banner
Boolean
Whether to display an app store promotion banner.
site.tailgate_appstore_id
String
App store ID for promotion banners.
site.show_info_bar
Boolean
Whether to display an info/notification bar.
site.footer_links
Array
Array of footer navigation links.
site.social_links
Array
Array of social media links.
site.show_nearby_search
Boolean
Whether the nearby/location-based search is enabled.
The School object represents the top-level organizational entity in an academic institution (e.g., a university). It is available as school or current_school.
The Site Format object contains localized date and time format patterns. These patterns are designed for use with Liquid’s date filter. The patterns respect the site’s configured locale and timezone.
Access these patterns via site.format and pass them to Liquid’s date filter:
The Theme object contains theming configuration for the site, including navigation settings. It is accessed via site.theme.
Variable
Type
Description
site.theme.name
String
The name of the active theme.
site.theme.header_size
String
Size/style of the header (e.g., “large”, “compact”).
site.theme.header_links
Array of Navigation Link
Array of navigation links in the header.
Example:
<header class="header-{{ site.theme.header_size }}">
<nav>
<ul>
{% for link in site.theme.header_links %}
<li>
<a href="{{ link.url }}">{{ link.name }}</a>
{% if link.dropdown? %}
<ul class="submenu">
{% for child in link.children %}
<li><a href="{{ child.url }}">{{ child.name }}</a></li>
{% endfor %}
</ul>
{% endif %}
</li>
{% endfor %}
</ul>
</nav>
</header>
The Navigation Link Object
The Navigation Link object represents a single link in the site’s navigation. Navigation links can be simple links or dropdowns containing child links. They are accessed via site.theme.header_links.
Variable
Type
Description
link.id
Integer
Unique identifier for the link.
link.name
String
Display text of the link.
link.url
String
Target URL for the link.
link.link_type
String
Type of link (e.g., “page”, “external”, “search”).
link.link?
Boolean
Whether this is a simple link (not a dropdown).
link.dropdown?
Boolean
Whether this is a dropdown menu with children.
link.children
Array of Navigation Link
Array of child links (for dropdowns).
Example:
{% for link in site.theme.header_links %}
{% if link.dropdown? %}
<div class="dropdown">
<button>{{ link.name }}</button>
<div class="dropdown-menu">
{% for child in link.children %}
<a href="{{ child.url }}">{{ child.name }}</a>
{% endfor %}
</div>
</div>
{% else %}
<a href="{{ link.url }}" class="nav-link">{{ link.name }}</a>
{% endif %}
{% endfor %}
Related Articles
This article is part of an 8-part series on Localist developer theming: