Omnira Docs v1.0.0

Settings reference

Every setting the build reads, grouped by file. Settings in a demo override site.json; settings in a page override its demo.

src/config/site.json#

SettingExampleMeaning
name"Harbour & Vine"Business name: header, footer, titles, copyright.
tagline"Seasonal cooking"Default page description.
logo{ "image": "", "imageLight": "", "height": 38 }Your logo files; empty uses the built-in mark. See Branding.
email, phone, addressContact details for footers, top bars and contact sections.
social{ "instagram": "https://…" }Social icons and links (Bootstrap Icons brand names; x for X).
formAction"send.php"Where forms send. "#" = demo mode. See Forms.
newsletterAction"https://…"Where newsletter boxes send (falls back to formAction).
headHtml, bodyEndHtml"<script …></script>"Code added to every page (analytics, chat widgets).
shareImage"https://…/share.jpg"Picture shown when a page is shared on social media.
showDemoSwitchertrueThe “Demos” tab on the left.
colorSwitcher, colorstrue, [ … ]The palette button and its default schemes.
themeDefault colours and fonts; see the theme table below.
footerDefault footer; see Footer.

src/demos/<demo>/demo.json#

SettingMeaning
name, category, order, descriptionHow the demo is listed on the overview page and in the demo switcher.
brandUse a different business name for this demo only.
currencySymbol for prices stored as numbers, e.g. "$", "€", "£".
themeThis demo's colours and fonts (see below).
colors, colorSwitcherColour switcher schemes for this demo, or false to hide it.
headerstyle, topbar, cta. See Header and menu.
navMenu links and dropdowns.
footerOverrides for site.json's footer.
contact{ "address", "phone", "email" } overriding site.json.
headHtml, bodyEndHtml, shareImageAs in site.json, for this demo only (added after the site-wide code).
unlistedtrue builds the demo but hides it from the overview and switcher.

Theme settings#

SettingExample
primary, accent, dark, light, text, heading, bg"#1f3d2b"
onPrimary, onAccentForce the text colour on primary/accent (normally automatic).
headingFont, bodyFont"Playfair Display"
headingFontSpec, bodyFontSpec"Bebas+Neue" for single-weight fonts
fontsUrlA complete Google Fonts (or other) stylesheet URL
headingWeight, headingTransform, headingSpacing700, "uppercase", "-0.02em"
radius, buttonRadius"14px", "99px"
logoMarkColour of the built-in logo mark

Page files: src/demos/<demo>/pages/<page>.json#

SettingMeaning
title, descriptionBrowser title and search description. May contain {item.field} on detail pages.
sectionsThe page's content. See Pages and sections.
headerHeader settings for this page only, e.g. { "style": "light", "topbar": null }.
each, prefixMake this a detail-page template for a data.json collection. See Data and detail pages.
headHtml, shareImageExtra head code or share picture for this page.

Data references#

WriteGives
{ "$data": "rooms" }Every record in the rooms collection (with optional limit, where, slugs, exclude).
"@rooms"The whole collection.
"@rooms#ocean-villa"One record by slug.
"@item", "@item.title"On a detail page: the current record, or one of its fields.