The words a site’s YAML can use, and what each one means. These are the same words the Code tab completes and
explains as you type, and the checker checks against, so this page is always what the code does. How they fit
together is in Collections and their pages and
the template language.
Field types
A collection’s fields, in collections/<name>.yaml, each have a type. A type’s own options are named in
its line, and explained under A field’s options:
| Type |
What it is |
text |
Text. multiline: true makes it a text area in the content form, and min and max limit its length. |
richtext |
Rich text, kept as HTML, cleaned of scripts and unsafe attributes when it’s saved. |
markdown |
Markdown, kept as it’s written. The markdown pipe writes it. |
number |
A number, with min, max and step. |
position |
Where an item comes in the collection: a number the dashboard keeps as the items are dragged into order. A collection with a position field is sorted by it. |
boolean |
Yes or no. |
date |
A date. time: true to include a time. |
choice |
One of its options. |
slug |
A slug for URLs. It’s made from the from field unless the item sets it. |
url |
A web address. |
email |
An email address. |
phone |
A phone number, kept as it’s written. The tel pipe makes a link of it. |
image |
A picture in the site’s assets, with its alt text and focus point. |
reference |
Another collection’s item: to names the collection. |
list |
A list of another field type, given by of. min and max limit how many items it has. |
object |
Named fields of its own (fields:), inside the item. Usually in a list. |
A field’s options
Every field can have type, required, default, label and help. The others are for the
types that name them.
| Option |
What it is |
type |
What kind of field it is: text, number, image, reference, list… |
required |
true if every item has to have it. A field that isn’t required can be left out. |
default |
The field’s value when an item is made without it. |
label |
What the content form calls the field, when that isn’t the field’s name. |
help |
A line under the field in the content form, saying what the field is for. |
multiline |
true for a text area in the content form, for text that’s more than one line. |
step |
How much a number goes up or down by in the content form. |
time |
true to include a time with the date. |
options |
The choices it can be, as a list: [Small, Medium, Large]. |
from |
The field a slug is made from when the slug isn’t written: usually title or name. |
to |
The collection the referenced item is in. |
of |
What the list is of: a field of its own, like { type: text } or { type: reference, to: artists }. |
fields |
The object’s own fields, written by name like a collection’s fields. |
min |
For text, its shortest length, in characters. For number, the smallest it can be. For list, the fewest items it can have. |
max |
For text, its longest length, in characters. For number, the largest it can be. For list, the most items it can have. |
A collection’s keys
| Key |
What it is |
label |
What the collection is called in the dashboard, when that isn’t its name written as words. |
fields |
The collection’s fields: each field’s name, then its type and options. |
order |
The order its items come in when a template doesn’t sort them: [position], or [-date] for newest first. |
private |
true if templates can’t read the collection: its items are only for the dashboard and server functions. |
publish |
The name of a yes/no field: templates only see the items where that field is yes. |
keep |
How long items are kept, like 1 year or 30 days: older ones are deleted. |
feed |
An RSS and Atom feed of its items, with a link to both in every page’s head. |
describes |
What its items are to search engines, like { type: Event, name: title, startDate: starts }. |
pages |
Makes it a collection of pages: the pages in pages/ at this path, like blog/*/index.html. |
body |
The markdown, rich text or text field that’s the body of an item’s .md file. |
A feed’s keys
| Key |
What it is |
path |
Where the feed is: /blog/feed.xml, with the Atom feed beside it as /blog/feed.atom. |
title |
The feed’s title. |
description |
What the feed is about. The site’s description is used if the feed has none. |
content |
The markdown, rich text or text field that’s each entry’s content. |
date |
The date field entries are dated and ordered by. |
categories |
A list field whose values are each entry’s categories, like tags. |
In forms/<name>.yaml.
| Key |
What it is |
label |
What the form is called in the dashboard and in its emails. |
collection |
The collection that submissions are kept in: one that’s private, or one that says which field publishes an item (publish). |
fields |
The fields visitors fill in, in order: fields of its collection. |
notify |
Who gets an email about each submission: owner, and the emails of people on the site. Other addresses aren’t emailed until they can confirm. |
replyTo |
The email field the email’s Reply-To comes from, so the owner can just press reply. |
success |
What visitors see after sending: a message, or { redirect: /a-page }. |
duplicates |
How long a submission sent again by the same visitor is marked as a repeat, like 7 days. It’s 30 days if the form doesn’t say. |
forward |
An https address that each submission is sent on to as JSON, for a CRM or a spreadsheet. |
spamCheck |
Whether the spam check keeps likely spam out of the Inbox and nobody’s emailed about it. It’s true if the form doesn’t say: false turns it off. |
Front matter
The YAML at the top of a page, layout or partial.
| Key |
What it is |
title |
The page’s title, for search results, shared links and the browser tab. |
description |
A sentence or two about the page, for search results and shared links. |
image |
The image shown when the page is shared, in assets/. Made for you if there isn’t one. |
type |
What the page is, for shared links: website (the default), article, or any OpenGraph type. |
favicon |
The page’s icon in the browser tab, from assets/, when it isn’t the site’s. |
app |
A mobile app the page is about, for app share cards. |
noindex |
true to keep the page out of search engines and the sitemap. |
shareTitle |
A different title for shared links, when it should differ from title. |
shareDescription |
A different description for shared links. |
canonical |
The URL of the original, for a page that’s a copy of one published elsewhere. |
structuredData |
Hand-written schema.org JSON-LD. |
titleFormat |
How this page’s title is written in its tab, when it isn’t the site’s titleFormat. |
layout |
The layout to render inside. none for no layout. |
each |
Render one page per item of a collection. |
props |
The props a partial takes, with their types. |
styles |
A partial’s own stylesheets in assets/, written into the head of every page that uses it. |
scripts |
A partial’s own scripts in assets/, written into the head of every page that uses it. |
page |
The front matter a layout reads from the pages inside it, with types. |
A snippet’s front matter
In snippets/<name>.html.
| Key |
What it is |
label |
What the snippet is called in the dashboard, like Chat widget. |
place |
Where the snippet goes on each page: head, body-start or body-end. It’s body-end if the snippet doesn’t say. |
pages |
The pages the snippet is on: all (if the snippet doesn’t say), or a list of paths, like [/contact, /menu/*]. |
consent |
The kind of consent the snippet needs, so it waits until the visitor agrees: none, necessary, functional, analytics or marketing. |
site.yaml
| Key |
What it is |
name |
What the site is called, in titles, share cards and structured data. Required. |
url |
The site’s address, like https://www.example.com. This is its primary domain, which every link, sitemap and share card uses. Required. |
language |
Its language, like en-US, for <html lang> and shared links. |
timezone |
Its time zone, like America/Los_Angeles, for hours, dates and when scheduled items come and go. |
description |
A sentence or two about the site, for any page without a description of its own. |
image |
The image shown when a page without its own is shared, in assets/, or { path, alt }. |
logo |
The logo, in assets/, for share cards, icons and structured data. |
icon |
A square mark in assets/ the icons are drawn from, when the logo is too wide to read at a small size. |
themeColor |
A color written as #rgb or #rrggbb, in quotes. It’s used for the bar on share cards, the Apple icon’s background and theme-color. |
favicon |
The icon in the browser tab, in assets/, or a list of them. Drawn from the logo if there isn’t one. |
titleFormat |
How every page’s title is written, like "{{ page.title }} · {{ site.name }}". |
layout |
The layout a page is rendered inside when the page doesn’t name a layout. |
viewportFit |
cover, only for a site whose CSS pads for a phone’s notch with env(safe-area-inset-*). |
social |
The site’s profiles, for shared links: twitter, like "@example". |
business |
Who the site is for, as structured data for search engines: a business, an organization or a person. |
integrations |
Well-known services set up with just an ID, like googleAnalytics: G-XXXXXXXXXX. |
analytics |
false turns off the visitor counting every site on Hypertekt has, for a site that counts its visitors some other way. Or goals: what counts as a visit reaching a goal, like [booking, form:contact]. |
headers |
Response headers to add or change, by path: exactly that path, or everything under a /folder/*. |
hosts |
Paths a domain of the site serves itself rather than redirecting to the primary one. |
languages |
Kept for sites in more than one language, which aren’t supported yet. |
business
| Key |
What it is |
type |
A schema.org type, like Restaurant, Organization or Person, or a list of them: [LocalBusiness, Gym]. |
name |
The business’s name, when it isn’t the site’s name. |
description |
A sentence or two about the business, when it isn’t the site’s description. |
phone |
Its phone number, as people dial it. |
email |
Its email address. |
address |
Where it is: { street, city, region, postcode, country }, with country as a two-letter code like US. |
geo |
Where it is on a map, { lat, lng }: the dashboard finds it from the address. |
hours |
When the business is open: a list of { day, opens, closes }, where day is a day or a list of days. Owners change them in Content, under Business. |
specialHours |
Days when the hours aren’t as usual. Each has { date } or { from, until }, then closed: true or opens and closes, and a note. |
priceRange |
How expensive it is, like $$. |
links |
Its profiles elsewhere, as a list of addresses. |
analytics
false, or:
| Key |
What it is |
goals |
What counts as a visit reaching a goal, in the Visitors tab: call, email, directions, form: and a form’s name, or a data-ht-action’s name, like [booking, form:contact]. Without it, all of them count. |
integrations
| Key |
Service |
Its ID looks like |
Consent |
googleAnalytics |
Google Analytics |
G-XXXXXXXXXX |
analytics |
googleAds |
Google Ads |
AW-123456789 |
marketing |
googleTagManager |
Google Tag Manager |
GTM-XXXXXXX |
marketing |
metaPixel |
the Meta Pixel |
123456789012345 |
marketing |
clarity |
Microsoft Clarity |
abcdef1234 |
analytics |
plausible |
Plausible |
lunaskitchen.com |
none |
fathom |
Fathom |
ABCDEFGH |
none |
goatCounter |
GoatCounter |
lunaskitchen |
none |
googleSiteVerification |
Google’s site verification |
the content of the meta tag Search Console gives |
none |
bingSiteVerification |
Bing’s site verification |
the content of the meta tag Bing Webmaster Tools gives |
none |