5.1.2
Content
Edit Groundcrew's services, areas, projects, reviews and posts in Markdown, or switch to EmDash, and set up your photos and ZIP codes.
Markdown
By default, the content is in Markdown, JSON and YAML files in content/:
content/services/: the services. Each has its own page.content/areas/: the towns you serve. Each has its own page.content/projects/: past jobs. Each has its own page.content/posts/: the blog.content/pages/: About, Privacy, Terms and Accessibility. The legal pages are templates. See Settings.content/reviews.json: the reviews.content/team.json: the people on the about page and in post bylines.content/faqs.json,content/steps.jsonandcontent/signs.json: the FAQ, the process steps and the warning signs.content/home.yaml: the home page, the hero and then one block per section, in order.content/menus.json: theprimarymenu, thefootercolumns and thelegallinks.content/taxonomies.json: the blog’s tags.content/site.json: the business details and settings. See Settings.content/media/: images. See Photos.
An entry’s slug is its file name, or its id in a JSON file. Set draft: true to leave an entry out. Set noindex: true on a service, area, project, post or page to keep it out of search engines, the sitemap and site search.
Each image has its alt text beside it, such as image and imageAlt. Write what the photo shows.
src/content/schemas.ts lists every field. pnpm test:adapter checks the rules that the schema cannot: for example, that a reference names an entry that exists, that a ZIP code is a ZIP code and that a review’s date is not in the future. Run it after you change, rename or remove an entry.
A service
---
title: "Sump pumps"
summary: "New pumps, battery backups and alarms, so a spring storm does not end in a wet basement."
image: "../media/sump-pumps.webp"
imageAlt: "A two-story house with a front porch"
facts:
timeOnSite: "2–3 hours"
method: "Cast iron pump, check valve, optional battery backup"
included:
- "Remove the old pump"
- "New pump and check valve"
day:
- time: "1:00 p.m."
step: "Plumber arrives and checks the pit, float and discharge line."
from:
amount: 640
unit: "installed, 1/3 HP pump"
faq:
- question: "Do I need a battery backup?"
answer: "If your basement is finished, yes."
areas:
- "westerville"
- "worthington"
order: 4
---
The text under the frontmatter is the service page's longer text.
summary: the line on the service’s card.label: an optional short name.facts: up to four:timeOnSite,method,coversandlasts.included: a list of what the job includes.day: rows oftimeandstep, the job as it runs.from: the “from” price, anamountin dollars and an optionalunit. It shows only while thefromPricespart is on. See Turn parts off.faq: the service’s own questions.areas: file names incontent/areas/. This list decides which services an area page shows.compare: an optional before and after pair. See Before and after.
An area
---
town: "Westerville"
state: "OH"
zips:
- "43081"
- "43082"
intro: "Our shop is here. Most Westerville calls get a plumber the same day."
home: true
order: 1
---
The text under the frontmatter is the area page's longer text.
town,stateandintroare required.zips: the area’s ZIP codes, for the ZIP check. See ZIP codes and the ZIP check.home: true: your shop’s own town. It is listed first. One area at most:pnpm test:adapterfails on two.photowithphotoAlt: optional.
An area page shows the services that list the area, and the projects and reviews that name it.
ZIP codes and the ZIP check
The ZIP check asks “Do we come to you?” and takes a ZIP code. It answers with the towns that list that ZIP, and each town links to its page. A ZIP that no area lists gets “Not yet”, with a link to call your phone number.
- Write each ZIP as
"43081"or"43081-1234", in quotes.pnpm test:adapterfails on one that is not a ZIP code, and warns on a ZIP listed twice in one area. - The check is on the areas page, and on the home page when the
areasblock hascheck: true. - It shows only while area pages are on and at least one area has a ZIP.
- Without JavaScript, it is a link to the areas page.
The areas page reads the ZIP codes from /zips.json, which the site builds from your areas. On EmDash, an edit shows on the next request.
A project
---
title: "Sump pump and battery backup after a flooded basement"
service: "sump-pumps"
place: "Gahanna, OH"
area: "gahanna"
year: 2026
cover: "../media/sump-pumps.webp"
coverAlt: "A two-story house with a front porch"
problem: "A March storm knocked the power out and the basement took on two inches of water."
approach: "We fit a cast iron primary pump and a battery backup on its own check valve."
result: "The next storm came two weeks later, and the floor stayed dry."
facts:
- label: "Time on site"
value: "4 hours"
review: "greg-s"
featured: true
---
service: a file name incontent/services/. Required.place: the town as it shows, such as “Gahanna, OH”. Required.area: a file name incontent/areas/, so the place links to its page. Write the place starting with that area’s town:pnpm test:adapterwarns when it does not.year: the year of the job.problem,approachandresult: the job’s story, each required.coverwithcoverAlt: optional. A project with no cover shows its card with no photo, and no empty box.facts: rows oflabelandvalue.review: theidof a review incontent/reviews.json. Pick a review about the same service, and use each review for one project only:pnpm test:adapterwarns otherwise.featured: true: the home page shows featured projects first.compare: an optional before and after pair. See Before and after.caseStudy: an optional longer story, with an optionaltitleandlede, andblocks. Each block has akind:text_image(atext, with an optionalheadingandimage),timeline(steps, each withwhenandwhat) orlist(items).
No project can have the slug service or page.
Before and after
A service or a project may have a compare pair:
compare:
before: ../media/before.webp
beforeAlt: "Before: the kitchen mid-job, with the walls still unpainted"
after: ../media/after.webp
afterAlt: "After: walls painted and floors finished"
title: Holly Springs kitchen and mudroom
Set both photos or neither. Use two different photos of the same view.
Reviews
Each review in content/reviews.json has an id, a quote, a name, a place, stars (a whole number from 1 to 5), a source (google, yelp, nextdoor or direct) and a date as YYYY-MM-DD. It may also have an area, a service, a link to the review where it was posted (an https: address) and featured: true. The home page shows featured reviews unless you pick others.
The sample reviews are made up. Use real reviews from real customers only.
The team
Each person in content/team.json has an id, a name and a role. A photo with photoAlt, licenses (a list) and a short bio are optional. The team shows on the about page, and a post’s author names a person by id.
A blog post
---
title: "Tank or tankless? What we tell Dublin families"
date: "2026-08-25"
excerpt: "A tankless heater is not right for every house."
tags:
- "water-heaters"
author: "marisol-quint"
---
tags are slugs from content/taxonomies.json. author is an id in content/team.json. A post may also have an updated date and an image with imageAlt. No post can have the slug page or tag.
The home page
content/home.yaml has one list, sections. The hero comes first. Put the other sections in any order, or remove them. Each section type appears once.
The section types: hero, trust, credentials, services, compare, process, projects, reviews, areas, faq, signs, emergency, care_plan, guarantee and quote.
hero: aheading(the page’s h1), an optionaleyebrowandtext, animagewithimageAlt, an optionalphoneImagefor phones, aprimaryand asecondarybutton, andpicker: truefor the quote picker.services,projects,reviews,faqandsignstakepicks, a list of slugs. With no picks, each shows its default list.services,projectsandreviewsalso takelimit, how many to show.guaranteeneeds exactly threepromises.
A section of a part that is off does not show. See Turn parts off.
The setup check reads the home page’s links and [FILL IN: …] markers, but not its picks or its order. pnpm test:adapter fails on a pick that names no published entry, a section type used twice or a hero that is not first. Run it after you change content/home.yaml.
Photos
Every photo is optional. A hero, a service or a project with no photo shows its text, with no empty box.
The photos in content/media/ and demos/<trade>/media/ are yours to use. Each is CC0 or public domain, and the CREDITS.md file beside them lists each file’s source and license. Add a line there for any photo you add that needs one. The people in the photos are not the people named in the samples.
Demo photos are not included. The hosted demos show other photos, so a few sample entries have no photo in your copy and show their no-photo state.
Switch to EmDash
EmDash is a CMS built on Astro, with an admin UI. To use it, load the sample’s content and images into a local database (data.db) once:
pnpm seed:emdash
It loads seed/seed.json into data.db and copies the sample’s images to uploads/. It stops if data.db exists. 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 collections are Services, Areas, Projects, Reviews, Team, Posts, Pages, Process steps, FAQs, Warning signs, Home page and Business details. The site’s title and tagline are EmDash’s site settings. The rest of the settings are in “Business details”, which has one entry.
If you switch samples with pnpm sample, run pnpm seed:emdash --reset after it.
pnpm test:parity builds the site from each source and checks that they give the same content and pages. On EmDash, pnpm test:adapter and pnpm test:parity use a fresh database seeded from seed/ for the run, not data.db, so they check the seed, not the edits you made in the admin.
With Markdown, the build is a static site. With EmDash, the build is a server app for Node. See Deploy.
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.