# Properties

## 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.

<div class="border border-dark">
  ![A Lotline property page with the photo band, the price, the status chip and the facts grid](/images/lotline/property.jpg)
</div>

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

### A Listing File
```yaml
# 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.

| Field | Type | What it does |
| --- | --- | --- |
| `title` (required) | text | The name on the card and the page, such as `"Three-bedroom townhouse on the river path"` |
| `status` | `sale` \| `rent` | For sale or for rent. Sets the chip, the filters, and how the price reads |
| `price` | number | The sale price, or the monthly rent for `rent`. A plain number with no symbol or commas, in the currency of `[listings]` |
| `priceNote` | text | The label over the price in the facts grid, such as `"Guide price"` |
| `badge` | text | A second chip next to the status, as written: `"New"`, `"Under contract"`, `"Lease pending"` |
| `type` | `house` \| `apartment` \| `townhouse` \| `villa` \| `penthouse` \| `studio` | The type filter and the type fact |
| `beds` | whole number | Bedrooms. `0` shows "Studio" |
| `baths` | number | Bathrooms. `2.5` works |
| `area` | number | Floor area, in the unit of `[listings] areaUnit` |
| `lotSize`, `yearBuilt` | text | Facts as written, such as `"0.2 acre"` or `"1912 (converted 2018)"` |
| `parking` | whole number | Parking spaces. `0` shows "None" |
| `availableFrom` | text | For rentals, as written: `"Available now"`, `"From March 1"` |
| `neighborhood` | neighborhood id | The file name of a neighborhood. Links the home to its guide and the area card on the page |
| `agent` | agent id | The file name of an agent. Shows their contact card on the page and the home on their profile |
| `address` | text | Street and neighborhood, never a house number. Used for the "See on map" link |
| `featured` | true/false | Shown in listings sections that use `source: "featured"`, and listed first |
| `date` | date | The day it was listed. The default sort on `/properties/` is newest first |
| `image`, `imageAlt` | image path, text | The cover photo (3:2) on the card and the page band |
| `gallery` | list of `image`, `alt` | The photos on the page, opened in a lightbox |
| `floorPlan` | image path | An optional floor plan under the description |
| `features` | list of text | Key features, shown as check rows under the description |
| `facts` | list of `label`, `value` | Extra rows for the facts grid, such as `{ label: "Heating", value: "Gas" }` |
| `draft` | true/false | Hides the listing everywhere |

<Aside type="caution" title="Status and price are both needed">
  A listing appears on the site only when it has a `status` and a `price`. A
  new file without them builds without an error, but it shows nowhere. That
  also means you can't list a home as "price on request". Give it a price, and
  use `priceNote` for the label.
</Aside>

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](/lotline/customization/listing-search/).

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

```text
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](/lotline/customization/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](/lotline/customization/seo-ai-visibility/).

### Add A Listing
<Steps>

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.

</Steps>

### 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](/lotline/customization/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
```text
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.
```