5.2.3
Settings
Set Vega's agency details and lead forms, read the setup check, and fill in the legal pages.
The settings are in content/site.json. In EmDash, title, tagline and logo are EmDash’s site settings, and the rest are in the “Agency details” collection.
The agency’s details
titleandtagline: the site’s name and its one-line description.logoandlogoAlt: an image for the header and the footer. Without one, the agency’s name shows as text.agency:name,phone,email,office(street,unit,city,state,zip),hoursandtimeZone. A name and atimeZone(such asAmerica/Denver) are required. Any other detail you leave out has no line. See The setup check.brokerage: the footer’s legal lines:legalName,licenseNumberandequalHousing. Left out, the legal name is the agency’s name and the Equal Housing line is on. Check your local rules before you turn that line off or leave the license out.mapCenter: where the map starts (latandlng). Left out: Denver.origin: where a neighborhood’s compass and miles are read from:label,latandlng. Left out, they hide.place: the hero’s place line and coordinates:line,lat,lngand an optionalelevationFt. Left out, they hide.mortgage: the mortgage calculator’s starting numbers:ratePct,termYearsanddownPct. Left out: 6.5% over 30 years with 20% down.recordandrecordNote: the home page intro’s rows of numbers, each alabeland avalue, and the note under them. Left out: no rows. The demo’s numbers are invented. Use real figures only.factsNote: the note under a neighborhood’s facts, which says whose numbers they are.sampleContent: the demo’s flag. See below.
With sampleContent on, a [FILL IN: …] marker never stops the build: the build warns about each one, whatever SITE_URL says. It also allows placeholder addresses while SITE_URL is not your real address, and shows the “Sample content” note in the footer. With sampleContent on, the demo’s open house, listing, price history and sold dates move, so turn it off before you add real listings. Turn it off before you launch. Left out, markers and placeholder addresses stop the build.
No page shows newsletterForm in this version. The setup check reads it, so leave it out.
In EmDash, the settings are flat fields, such as agency_name, office_street, map_lat, map_lng and sample_content.
Forms
Vega has three lead forms. Each posts to your form service. Leave one out, and the page shows your phone and email in its place.
tourForm: on a home’s page. It sendsdate,time,name,phone,noteand the email field, pluslisting,agentandtimeZone, so your service knows which home and agent the request is for.valueForm: on/selland in the home page’svaluesection. It sendsaddress,phoneand the email field.contactForm: on/contact. It sendsname,messageand the email field.
Each takes the form’s action (where it posts) and, if your service needs them, emailName, honeypot and hiddenFields:
"contactForm": {
"action": "https://forms.<your-domain>/contact",
"honeypot": { "name": "_gotcha" },
"hiddenFields": [{ "name": "subject", "value": "Website contact" }]
}
actionis anhttps:URL or a site path.emailNameis the name of the email field. Left out:email.honeypotis your service’s spam trap field. People do not see it.hiddenFieldsis a list of{ "name", "value" }pairs that your service needs. A value that looks like a link must be a fullhttps:address.
In EmDash, the form settings are flat fields: tour_form_action, tour_form_email_name, tour_form_honeypot and tour_form_hidden, and the same for value_form_ and contact_form_.
What a form on a placeholder address does
Set real form addresses before you launch. The demo’s forms have placeholder addresses on example.com. That is a real server, so a form on such an address never sends a visitor’s details there. What it does depends on the site:
- A site that is not live (your own machine, or a static build with no real
SITE_URL) withsampleContenton: the form sends nothing and shows “This is a demo, so nothing was sent.” - A live static site: with a real
SITE_URL, the build stops and lists eachexample.comaddress, even withsampleContenton. - An EmDash server: a production server always counts as live, and it runs no check. The form does not show. The page shows your other ways to reach you (phone and email), and the server log names the setting. A placeholder hidden value in a real form is left out in the same way.
So on EmDash, check the form addresses before you launch: pnpm dev runs the check below. Then try each form.
The setup check
pnpm build (with Markdown) and pnpm dev check the settings. They stop with a list of problems:
- No agency name (
agency.name), even with a title. - No way to reach anyone: no tour, value or contact form, and no agency phone or email.
- A form with no action, or one that is neither
https:nor a site path. - A honeypot name that browsers fill in (
email,name,url,phone,companyormessage), or a honeypot or hidden field with the same name as one of the form’s own fields. - A hidden field value that looks like a link but is not a full
https:address. - A home page pick that names no published entry.
- A content link that is not an
https:URL, a site path, a#link,mailto:ortel:. - Placeholder addresses, unless
sampleContentis on andSITE_URLis not your real address: a form action, hidden value, agency email, agent’s email or menu link onexample.com,example.orgorexample.net(or a subdomain of one, or.example). A realSITE_URLstops on these even withsampleContenton. [FILL IN: …]markers in a page, listing, agent, neighborhood or post, the home page, a menu or the settings, unlesssampleContentis on. The list names each entry, such aspages/privacyorlistings/<slug>. Fill each one in, or turnsampleContenton to build anyway. With it on, the build warns about each marker, whateverSITE_URLsays. A draft stopspnpm devonly, because a build leaves drafts out.
With EmDash, the check runs in pnpm dev only. A production server never runs it. A bad value there just gives the fallback, and an agency or agent email or a link on a placeholder address is left out, with one line in the log. A [FILL IN: …] marker has no fallback, because an EmDash build renders no page and so cannot see your content. A marker in anything you publish shows on the live site, so replace each one before you publish.
A server with no name
A production EmDash server with no agency name and no title answers every page with a plain “This site is not set up yet” page (status 503). It also logs one line that names the setting. The admin still opens at /_emdash/admin. Save a name there, and the site answers at once.
Legal pages
content/pages/privacy.md, terms.md and accessibility.md are templates. Each [FILL IN: …] marker asks for one fact: your brokerage’s details, your form service, your retention periods, your host, your state’s law, your listing source and your attorney’s wording. Replace each one with your real fact. To find them:
grep -rn "FILL IN" content/
A marker left in a page, or anywhere else you write, stops the build, and the setup check names each entry. The one exception is while sampleContent is on, as in your first build, whatever SITE_URL says. The build then goes on, prints each entry as a warning, and the page shows the marker as written.
With EmDash, the same markers are in the Pages collection: open each page in the admin. pnpm dev runs the same check by the same rule. A production server runs no check and shows a marker as written, so clear them before you launch.
These templates are not legal advice. Have your attorney read them.