5.4.3
Settings
Set Lodestar's booking link, contact form and free guide, and read the setup check.
The settings are in content/site.json. In EmDash, they are in the “Firm details” collection. Lodestar has no backend: the visitor’s browser sends form data straight to your form service, newsletter tool and booking page.
An empty setting gives a plain fallback, never a broken form.
bookingUrl: every “Book a call” button links here, for example to Cal.com or Calendly. Empty: the buttons go to/contact.contactForm: the contact form posts to your form service. Empty:/contactshows the contact details only.guideForm: the guide’s email form posts to your newsletter tool. Empty: no form.guideFile: the guide’s download. Empty: no download.sampleContent: the demo’s flag. With it on, a[[fill in: …]]marker never stops the build: the build warns about each one, whateverSITE_URLsays. It also allows placeholder addresses whileSITE_URLis not your real address, and shows a “Sample content” note in the footer. Empty: markers and placeholder addresses stop the build.
The file also has the firm’s name, tagline, legal name, email, phone, address, office hours and social links. Set logo and logoAlt to use your own logo. logo is an image file path, like the other images in content/. Without one, the site shows a star mark and the site name. The hosted demo’s logo is not included.
Every link setting must be an https: URL or a site path, such as /contact.
The contact form
contactForm takes the form’s action (where it posts) and, if your service needs them, emailName, honeypot (your service’s spam trap field name) and hiddenFields. Have your service send people back to /contact/thanks.
"contactForm": {
"action": "https://example.com/forms/your-form",
"honeypot": { "name": "_gotcha" }
}
In EmDash, the form settings are flat fields: contact_form_action, contact_form_email_name, contact_form_honeypot and contact_form_hidden.
The free guide
guideForm works like the contact form. Your newsletter tool should send the reader to /guide/thanks. A hidden field whose value is a site path, such as /guide/thanks, becomes a full URL on your site’s address. In EmDash, the fields start with guide_form_.
guideFile is a file in public/, such as /files/guide.pdf, or an https: URL. Anyone with the link can download it.
The guide has four states:
- Form and file:
/guideshows the form./guide/thankshas the download link. - File only: the home page panel and
/guidelink to the file. There is no form and no thanks page. - Neither: there is no guide anywhere.
/guideis a 404 page, and the build prints a warning. - Form only: the build stops. Set
guideFile, or clearguideForm.
The guide’s title, text and thanks message are in content/guide.md.
Before you launch
Set real form and booking addresses before you launch. The demo’s have placeholder addresses on example.com, and a form on such an address never sends a visitor’s message:
- On a site that is not live (your own machine, or a static build with no real
SITE_URL), it sends nothing and shows “This is a demo, so nothing was sent.” - With a real
SITE_URL, a static build stops and lists each address, even withsampleContenton. - A production EmDash server always counts as live. The form does not show:
/contactshows the contact details,/guideshows the file, and the server log names the setting. AbookingUrlonexample.comis dropped there too, and “Book a call” goes to/contact. So is an email or link onexample.comand a social or team link to a profile site’s home page: the link does not show, and the log names it once.
The setup check
pnpm build (with Markdown) and pnpm dev check the settings. They stop with a list of problems:
- A link setting that is neither
https:nor a site path. - A guide form with no file, or a
guideFilepath that is not a file inpublic/. - A honeypot name that browsers fill in:
email,name,urlorphone. - Placeholder addresses, unless
sampleContentis on andSITE_URLis not your real address: a form action, booking URL, guide file, hidden field, email, social link, menu link, Markdownseo.canonical, or the link of a team member, a plan or the home page, onexample.com(or a subdomain of it, or.example), a social or team link to a profile site’s home page with no username (the demo’s are, such ashttps://www.linkedin.com). A realSITE_URLstops on these even withsampleContenton, because a form on a placeholder address takes no messages. [[fill in: …]]markers anywhere you write text, unlesssampleContentis on: the pages, posts, services, case studies, industries, team, plans, FAQs, testimonials, the guide, the home page, the settings and the menus. The list names each entry, such aspages/privacyorposts/<slug>. Fill each one in, or turnsampleContenton to build anyway. With it on, the build warns about each marker, whateverSITE_URLsays. A marker in a draft stopspnpm devonly, because a build leaves drafts out.
The check also covers the links in your content: the menus, the social links, a team member’s links, a plan’s button and the home page’s links. Each must be an https: URL, a site path, a # link, mailto: or tel:. Anything else stops the build.
With neither a contact form nor any contact details, the check prints a warning, and /contact shows a short line.
With EmDash, the check runs in pnpm dev only. A production server never runs it. A bad value there just gives the fallback, and a bad link is left out. A [[fill in: …]] marker has no fallback: a marker in a published entry shows on the live site, so replace each one before you publish.
Your site’s address
Set your site’s public address before you build. The feed, the sitemap, robots.txt, the share images and the guide form’s redirect need it. See Deploy.