5.2.2
Content
Edit Vega's homes, agents, neighborhoods and posts in Markdown, or switch to EmDash, and set up your photos.
Markdown
By default, the content is in Markdown, JSON and YAML files in content/:
content/listings/: the homes. Each has its own page.content/agents/: the agents. Each has their own page.content/neighborhoods/: the neighborhoods. Each has its own page.content/posts/: the blog.content/pages/: Privacy, Terms and Accessibility. See Legal pages.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 agency’s details and settings. See Settings.content/media/: images. See Photos.
An entry’s slug is its file name. Set draft: true to leave an entry out. Set noindex: true to keep an entry out of search engines, the sitemap and site search. See Search and AI.
Each image has its alt text beside it. Write what the photo shows.
A home
---
title: "Alcott Street Modern"
status: for-sale
price:
amount: 1295000
period: once
address:
street: "3318 Alcott St"
city: Denver
state: CO
zip: "80211"
point:
lat: 39.7639
lng: -105.01742
neighborhood: highlands
agent: lucinda-ferraro
homeType: house
beds: 4
baths: 3.5
sqft: 2960
photos:
- image: ../media/home-14.webp
alt: "A modern house on a corner lot"
features:
- label: "Parking"
value: "Two-car garage"
openHouses:
- start: "2026-11-08T13:00:00-07:00"
end: "2026-11-08T15:00:00-07:00"
listed: 2026-10-28
---
The text under the frontmatter is the listing's text.
status:for-sale,for-rent,pendingorsold.price:amountin dollars, andperiod:oncefor a sale,monthfor a rent.sold: thedateandamountof a sale. A sold home needs it, and no other home may have it.availableFrom: a rental’s move-in date.point: the latitude and longitude, for the map.neighborhoodandagent: the file name of an entry incontent/neighborhoods/andcontent/agents/.homeType:house,townhomeorcondo.beds,baths,sqft,yearBuilt,garageandlotSqft: optional numbers. A half bath is.5.photos: at least one, each withalt. The first is the card’s.features: rows oflabelandvalue.openHouses: eachstartandendis a quoted date and time with its offset. A past open house drops out by itself.listed: the day the home was listed, asYYYY-MM-DD.listingNumber: optional.priceHistory: rows ofdate,amountand an optionalevent.
No home can have the slug page. A home that is not sold is in the search. See Home search and map.
pnpm test:adapter checks the rules that the schema cannot: for example, that a price’s period fits the status, that a sold home has its record, and that no date is in the future. It also fails on a reference to a missing entry. Run it after you change a home, or rename or remove an entry.
An agent
An agent has a name, a photo with photoAlt, and a role. The rest is optional:
phoneandemail.areas: file names incontent/neighborhoods/.licensedSince: the year.closedSales, andclosedLabelfor the words beside it. With no label, it says “Homes closed”.licenseNumber.order.
The text under the frontmatter is the agent’s bio. Use real figures only.
A neighborhood
A neighborhood has a name, a photo with photoAlt, a center (lat and lng) and an intro. The rest is optional:
facts: each has alabel, avalue, an optionalunit, an optionalmode(buyorrent) andasOf, which says when the number is from. Use real figures only.factsNotein the settings says whose numbers they are.highlightMode:buyorrent, which of the facts the highlights are about. With none,buy.head: the heading over the text under the frontmatter. That text needs a heading.order.
A blog post
A post has a title and a date. It may also have an excerpt, an image with imageAlt, tags and an author:
---
title: How we price a house
date: 2026-10-14
excerpt: What goes into the number on the listing sheet.
image: ../media/int-01.webp
imageAlt: A kitchen
tags:
- selling
author: jules-whitaker
---
tags are slugs from content/taxonomies.json. author is a file name in content/agents/. No post can have the slug page or tag.
A post may also have an updated date. See Search and AI.
The home page
content/home.yaml has a hero, then sections. Put the sections in any order. Remove a block to hide that section, or repeat one.
The hero is fixed in place, because its heading is the page’s h1. It has a heading, an optional quiet line, an optional text, an image with imageAlt, an optional phoneImage with phoneImageAlt (a taller crop for phones) and an optional note.
The section types:
intro: aheadingand an optionaltext. Beside them are the rows ofrecordfrom the settings.open: the homes with an open house in the next 7 days, under “Open houses this week”. With none, it shows “New this week”.limitsets how many.rentals: aheadingandpicks, a list of rentals by file name. With no picks, it shows the newest rentals, up tolimit.neighborhoods: aheading, an optionaltextandpicks. With no picks, it shows every neighborhood, in order.agents: aheading, an optionaltextandpicks. With no picks, it shows every agent, in order.story: a client’squote, theirname, an optionaldetail, an optionalimagewithimageAlt, andfacts. The demo’s story is invented. Use a real client’s words, or remove the section.value: the home value form, with aheadingand an optionaltext,noteandbutton. The form comes fromvalueFormin the settings. See Settings.
A pick that names no published entry stops the build.
Photos
The photos in content/media/ are yours to use. Each is CC0 or public domain, and content/media/CREDITS.md 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 demo.
Demo photos are not included. The hosted demo shows other photos.
Photos on EmDash
- Set
SITE_URLorEMDASH_SITE_URLwhen you build. EmDash resizes photos only for the host it knows at build. With neither set, each card loads one full file, which makes pages heavier. A localastro devneeds neither.EMDASH_SITE_URLwins when both are set. - EmDash resizes only media keys with no slash. Uploads through the admin have such keys. A key with a folder in it, such as
homes/one.webp, goes to the public URL at its full size. - Photos on another host need
VEGA_MEDIA_HOSTS, or share cards have no photo. Set it to a comma-separated list where the server runs. A host name, such asmedia.<your-domain>, means https on the default port. Any other port needs a full origin, such ashttps://media.<your-domain>:8443. The photos still show on your pages either way. Only the share card leaves them out.
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 collections are Homes, Agents, Neighborhoods, Blog, Pages, Home page and Agency details. The site’s title, tagline and logo are EmDash’s site settings. The rest of the settings are in “Agency details”, 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.
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.