5.4.2
Content
Edit Lodestar's content in Markdown, or switch it to EmDash.
Markdown
By default, the content is in Markdown, JSON and YAML files in content/:
content/services/: services. Each is a fixed engagement with its own page.content/case-studies/: case studies.content/industries/: the industries you work in.content/team/: the people at the firm. Each has a page.content/posts/: Insights, the blog.content/testimonials/: client quotes.content/pages/: About, Privacy and Terms.content/home.yaml: the home page, one block per section.content/guide.md: the free guide’s words.content/plans.jsonandcontent/faqs.json: the plans and questions on/pricing.content/menus.json: the nav, the footer columns and the legal links.content/taxonomies.json: the post topics.content/site.json: the firm’s details and settings. See Settings.content/media/: images.
Set draft: true to leave an entry out. Set noindex: true to keep a page out of search engines, the sitemap and site search.
A case study
A case study names its client, its industry and its services, and lists its results. The first result shows on the card:
---
title: A cabinetmaker that finished jobs before starting new ones
client: Brightwater Cabinetry
summary: A custom cabinet shop had dozens of jobs open at once and too few of them finished.
image: ../media/case-6.webp
imageAlt: A woodworker's bench with hand tools on the shelves and wall behind it
industry: construction-and-trades
services:
- change-that-sticks
results:
- value: −50%
label: jobs open at any one time
year: 2023
featured: false
---
industry and services are file names in content/industries/ and content/services/. The build stops if one names a missing entry. A post’s author (a file in content/team/) and a testimonial’s caseStudy work the same way.
/case-studies shows every case study in one grid, with a filter above it for each industry that has a case study. The industry lists on the home page and on /industries link each such industry to its filter.
A service
A service has a summary, a length (4 weeks), a list of outcomes, its steps and its own FAQ. Set featured: true to show it on the home page, which shows up to three.
An Insights post
A post has a title, a date, an excerpt, an image, an author and a topic. It may also have an updated date, for when you change it later. When updated is on a later day than date, the post shows “Updated” and that date under the byline, and the sitemap and the structured data use it. See Search and AI.
The home page
content/home.yaml has one block per section, in a fixed order: the hero, the stats, why us, services, industries, the guide panel, case studies, a testimonial, the team, a short about and the closing call to action. Leave a block out to hide that section.
In a heading, asterisks mark the one phrase shown in italic: Steady direction for businesses that have *outgrown the plan.*
The home page shows three case studies (the featured ones first, then the newest) and up to four featured team members.
Switch to EmDash
EmDash is a CMS built on Astro, with an admin UI. To use it, load the demo content and images into a local database (data.db) once:
pnpm seed:emdash
Add --reset to start over. It deletes the content in the database.
Then change "markdown" to "emdash" in astro.config.mjs, or set CONTENT_SOURCE=emdash, and run pnpm dev. The admin UI is at http://localhost:4321/_emdash/admin.
The site’s title, tagline and logo are EmDash’s site settings. The rest of the settings are in the “Firm details” collection, which has one entry.
pnpm test:parity builds the site from each source and checks that they give the same content and pages.
With Markdown, the build is a static site. With EmDash, the build is a server app for Node. See Deploy.
Search
With Markdown, the build indexes its pages with Pagefind, for /search. With EmDash, the search page asks EmDash on each request.
Privacy and terms pages
The privacy page, content/pages/privacy.md, is a template. Each [[fill in: …]] marker asks for one fact: your firm’s details, what each outside service stores and for how long, your host’s logs, and the privacy laws that apply to you. The build stops until every marker is gone, unless sampleContent is on.
The terms page is demo text for a made-up firm. Do not publish it as it is. If you are not sure what these pages must say, ask someone who knows the law where you work.
The /system page
Run pnpm dev, then open /system. It shows the colors, type, components and sections. A build leaves it out unless you set ASTRONOMIC_SYSTEM=1.