Skip to content
New: Customize your theme with an AI assistant. Read the guide

Properties

Files: src/content/properties/<language>/, photos in src/assets/images/lotline/properties/ · Skill level: Beginner

Every home you list is one Markdown file. The file holds the price, the facts, the photos and the description, and Lotline builds the rest from it: the card in the listings sections, the property page, the filters on /properties/, the homes on the agent’s profile and the neighborhood guide, and the structured data search engines read.

A Lotline property page with the photo band, the price, the status chip and the facts grid

The demo has 12 sample listings, 7 for sale and 5 for rent. The homes, streets and prices are made up.

A Listing File

src/content/properties/english/elm-hill-modern-villa.md
---
title: "Five-bedroom villa with city views"
description: "A five-bedroom villa finished in 2021, set high on Ridgeway Drive..."
status: "sale" # sale | rent
type: "villa" # house | apartment | townhouse | villa | penthouse | studio
price: 1920000 # sale price in [listings] currency
priceNote: "Guide price"
beds: 5 # 0 = studio
baths: 4
area: 4300 # floor area in [listings] areaUnit
lotSize: "0.6 acre"
parking: 3
yearBuilt: "2021"
neighborhood: "elm-hill" # file name in src/content/neighborhoods/
agent: "daniel-hart" # file name in src/content/agents/
address: "Ridgeway Drive, Elm Hill" # street and neighborhood only
featured: true
date: 2026-10-30 # listed on
image: "/images/lotline/properties/elm-hill-modern-villa/cover.jpg"
imageAlt: "Villa and pool patio at dusk"
gallery:
- image: "/images/lotline/properties/elm-hill-modern-villa/gallery-1.jpg"
alt: "Living and dining room with glass walls to the patio"
features:
- "City views from the living room and main bedroom"
draft: false
---
Glass doors run the length of the living room and open onto the patio...

The text under the frontmatter is the description on the property page. description is the lead line at the top of the page and the meta description.

FieldTypeWhat it does
title (required)textThe name on the card and the page, such as "Three-bedroom townhouse on the river path"
statussale | rentFor sale or for rent. Sets the chip, the filters, and how the price reads
pricenumberThe sale price, or the monthly rent for rent. A plain number with no symbol or commas, in the currency of [listings]
priceNotetextThe label over the price in the facts grid, such as "Guide price"
badgetextA second chip next to the status, as written: "New", "Under contract", "Lease pending"
typehouse | apartment | townhouse | villa | penthouse | studioThe type filter and the type fact
bedswhole numberBedrooms. 0 shows “Studio”
bathsnumberBathrooms. 2.5 works
areanumberFloor area, in the unit of [listings] areaUnit
lotSize, yearBuilttextFacts as written, such as "0.2 acre" or "1912 (converted 2018)"
parkingwhole numberParking spaces. 0 shows “None”
availableFromtextFor rentals, as written: "Available now", "From March 1"
neighborhoodneighborhood idThe file name of a neighborhood. Links the home to its guide and the area card on the page
agentagent idThe file name of an agent. Shows their contact card on the page and the home on their profile
addresstextStreet and neighborhood, never a house number. Used for the “See on map” link
featuredtrue/falseShown in listings sections that use source: "featured", and listed first
datedateThe day it was listed. The default sort on /properties/ is newest first
image, imageAltimage path, textThe cover photo (3:2) on the card and the page band
gallerylist of image, altThe photos on the page, opened in a lightbox
floorPlanimage pathAn optional floor plan under the description
featureslist of textKey features, shown as check rows under the description
factslist of label, valueExtra rows for the facts grid, such as { label: "Heating", value: "Gas" }
drafttrue/falseHides the listing everywhere

The sample prices and areas are marked # sample. Prices are plain numbers so the filters and the sort can compare them. The currency symbol, the thousands separator and the “/mo” after a rent come from [listings] and the page language. See Listing Search.

Photos

Each listing has its own photo folder named after the file:

src/assets/images/lotline/properties/elm-hill-modern-villa/
cover.jpg ← image: (3:2, the card and the page band)
gallery-1.jpg ← gallery:
gallery-2.jpg
gallery-3.jpg

Content files point at them as /images/lotline/properties/<file name>/<photo>.jpg. Lotline resizes and compresses every photo at build time, so upload the largest good copy you have. A photo path that points at a missing file shows nothing and gives no error, so open the page after you add photos.

Write an alt for every gallery photo that says what the room is (“Main bedroom with floor-to-ceiling windows”). The lightbox shows it as the caption.

The demo photos are placeholders from Unsplash. Replace them with your own photos of your listings before you launch.

The Property Page

/properties/<file name>/ shows, top to bottom:

  1. A tall photo band with the cover photo, the title, the status and badge chips, the price and the address.
  2. The lead and the facts grid: description, the Markdown copy and Ask AI links, then one card per fact (price, type, bedrooms, bathrooms, floor area, lot size, parking, year built, listed on, available from, and your own facts). A fact you leave empty is skipped.
  3. The gallery: the first photo full width, the rest two to a row. Each photo opens the lightbox, with previous and next buttons, arrow keys and Esc.
  4. About this home: the Markdown body, the key features, and the floor plan.
  5. The area and the agent: a card for the neighborhood with a link to its guide and a “See on map” link, beside the listing agent’s card with their phone, email and a link to their profile.
  6. The viewing form, which also sends the listing’s title so you know which home it’s about.
  7. Similar homes: three other listings, picked by the same status first, then the same neighborhood, then the same type.
  8. The call to action band.

The viewing form is the enquirySection block of src/content/properties/english/-index.md. Its title, text, fields and messages apply to every property page. See Forms for where the messages go.

The property page reads no pageHeader block: its band always uses the cover photo.

Structured Data

Each property page carries RealEstateListing data with the title, the description, the cover photo, the date listed, the price and currency (a monthly price for rentals), the bedrooms, bathrooms and floor area, and the street from address. /properties/ carries a list of every listing. See SEO & AI Visibility.

Add A Listing

  1. Copy a listing of the same status, for example src/content/properties/english/riverside-townhouse.md, and rename it. Use the address or a short description, in lowercase with dashes: the file name is the URL.
  2. Make a photo folder with the same name in src/assets/images/lotline/properties/ and put the cover and gallery photos in it.
  3. Fill in the fields. Check that neighborhood and agent are file names that exist.
  4. Set date to the day you list it, and featured: true if it should show on the homepages.
  5. Copy the file into french/ and arabic/ with the same name and translate the text. Keep the numbers the same.
  6. Run npm run astro-check, then open the page.

When A Home Sells Or Lets

  • Under offer: set badge: "Under contract" (or "Lease pending"). The home stays in the filters.
  • Sold or let: set draft: true in every language, or delete the file and its photo folder.
  • The Properties menu: if the home is the featured card in the Properties menu, change the card in each src/config/menu.<language>.json. Its price and title there are typed text. See Menus.

A link to a page that no longer exists goes to the 404 page, so check the homepages and your blog posts for links to the old listing.

Do It With AI

Add a new listing to my Lotline site: [STATUS sale or rent], [TYPE], [PRICE], [BEDS] beds,
[BATHS] baths, [AREA] [UNIT], in the [NEIGHBORHOOD] neighborhood, listed by [AGENT]. Address
(street only): [STREET]. Description: [TEXT]. Key features: [LIST].
Copy src/content/properties/english/riverside-townhouse.md to a new file named after the home,
fill in my values, and use file names that exist in src/content/neighborhoods/ and
src/content/agents/. Point image and gallery at src/assets/images/lotline/properties/<file name>/,
where I put [N] photos. Create the French and Arabic files with the same name and the same numbers,
then run npm run astro-check.
Type something to search...