Agents
Files: src/content/agents/<language>/, portraits in src/assets/images/lotline/agents/ · Skill level: Beginner
Each agent is one file: name, role, portrait, contact details, the neighborhoods they cover, and a bio. From that one file Lotline builds their profile page, their card on /agents/, the contact card on every home they list, the agents row on the neighborhoods they cover, and the author line on their blog posts.

An Agent File
---title: "Daniel Hart" # the agent's namerole: "Founder and principal broker"bio: "Started the agency in 2004 and still handles most of the Elm Hill sales himself."image: "/images/lotline/agents/agent-1.jpg" # 4:5 portraitphone: "+15550100101" # E.164, for tel: linksphoneDisplay: "(555) 010-0101"since: 2004 # year joinedlanguages: - "English"areas: # file names in src/content/neighborhoods/; empty = every neighborhood - "elm-hill" - "cedar-park"stats: - label: "Homes sold" value: "310" - label: "Years with us" value: "22"weight: 1 # lowest firstdraft: false---
Daniel opened the agency in 2004 with one desk in the city center...| Field | Type | What it does |
|---|---|---|
title (required) | text | The agent’s name |
role | text | Under the name on the card and the profile: "Sales director" |
bio | text | One or two lines about the agent. The profile’s meta description when description is empty |
image | image path | A 4:5 portrait for the card, the profile and the contact cards |
email | text | The email row on the profile and the contact card |
phone, phoneDisplay | text | phone in E.164 format (+ and the country code, digits only) for the call link, phoneDisplay as people read it |
languages | list of text | The languages row on the profile, and knowsLanguage in structured data |
areas | list of neighborhood ids | The neighborhoods they cover. Empty means every neighborhood |
stats | list of label, value | Up to three figure cards on the profile. The values count up as they scroll into view |
since | whole number | The year they joined. Kept with the agent, not shown on the page |
weight | number | Order everywhere (lowest first) |
| Named blocks | pageHeader and ctaSection for this profile only |
The text under the frontmatter is the full bio on the profile.
Every agent shows their own email and phone. If your agency takes every call at the front desk, put the office email and number in each agent file instead.
Where Agents Appear
| Place | What it shows | Picks agents by |
|---|---|---|
/agents/ | Every agent as a portrait card with the name and role, three to a row, then the pine tile | weight |
/agents/<file name>/ | The profile: portrait, name, role, bio, contact rows, the neighborhoods, the stat cards, then every home that names them as agent | |
| Property pages | The “Listing agent” card beside the area card | The listing’s agent |
| Development pages | The sales contact card beside the sign-up form | The development’s agent |
| Neighborhood pages | The agents row, up to four | Agents whose areas include the neighborhood, then agents with empty areas |
| Developments home, about | The agents section, four portrait cards | ids, or every agent by weight |
| Blog posts | The author line, with portrait and profile link | The post’s author matching the file name |
The agents section takes ids (file names in the order you want) and limit (default 4, 0 for every agent):
agentsSection: enable: true title: "The people you'll work with" ids: ["daniel-hart", "omar-reyes", "lucas-bennett", "marcus-lin"] # optional: pick by hand limit: 4The Agents Page

src/content/agents/english/-index.md holds the title, the page header, the call to action, and endCard, the pine tile after the last agent:
endCard: # pine tile after the last agent; enable: false hides it enable: true title: "Want to know what your home is worth?" text: "One of us will come over, walk through it with you and send a written price within two business days. It's free." button: enable: true label: "Book a valuation" url: "/valuation/"Every profile page uses the band photo and the call to action of this file, unless the agent’s own file sets pageHeader or ctaSection.
Add An Agent
- Copy an agent file, for example
src/content/agents/english/ethan-cole.md, and rename it after the person:first-last.md. The file name is the profile URL and the id other files use. - Put their portrait (4:5, at least 760 by 950 pixels) in
src/assets/images/lotline/agents/and pointimageat it. - Fill in the fields. In
areas, use file names fromsrc/content/neighborhoods/. - Copy the file into
french/andarabic/with the same name. Translaterole,bioand the body. Keep the name, email and phone the same. - Run
npm run astro-check.
To remove an agent, first move their listings and developments to someone else (change agent: in those files), then delete the agent file in every language. A listing that names an agent who no longer exists shows no agent card. Blog posts keep their author text, without the photo and link.
The sample agents, their phone numbers and their stats are made up. Use real photos of your own people, with their consent.
Do It With AI
Add an agent to my Lotline site: [NAME], [ROLE], email [EMAIL], phone [PHONE], languages[LIST], covering the neighborhoods [LIST]. Bio: [TEXT]. Portrait: [FILE NAME] insrc/assets/images/lotline/agents/. Copy src/content/agents/english/ethan-cole.md to a new filenamed after the agent (first-last.md), use only keys the agents schema in src/content.config.tsallows (it is strict), write phone in E.164 format, and use file names fromsrc/content/neighborhoods/ in areas. Create the French and Arabic files with the same name,then run npm run astro-check.