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

Writing Content

Skill level: Beginner · Used in: blog posts, listings, developments, agents, neighborhoods, services, legal and text pages

Every content file has two parts. The frontmatter sits between the two --- lines at the top and holds settings and short texts, written in YAML. The body below it holds the longer text, written in Markdown. Files that end in .mdx can also use shortcodes, small components such as callouts, checklists and buttons.

---
title: "What to ask at a viewing" # frontmatter: YAML
description: "The questions buyers forget."
date: 2026-09-25
draft: false
---
Most viewings last 20 to 30 minutes. ← body: Markdown
## Questions about the sale

In Lotline, blog posts are .mdx files. Properties, developments, agents, neighborhoods, services, jobs and the legal pages are .md files. They take Markdown and the business tokens below, but not shortcodes.

Frontmatter Basics

  • Keep the keys exactly as they are and change only the values.
  • Put text in double quotes: title: "Two-bedroom loft". Write a quote inside text as \", or put single quotes around the text.
  • Dates are YYYY-MM-DD: date: 2026-09-25.
  • Lists start each item with - (or use ["Buying", "Selling"]). Nested keys are indented with two spaces, so copy the indentation of the line above.
  • src/content/_file_format.md lists the common page fields with a comment on each.

File Formats explains YAML, Markdown and TOML from the start.

The# sampleComments

Text after # on a YAML line is a comment, and the site ignores it. Lotline uses comments in two ways:

  • To list options. status: "sale" # sale | rent tells you the allowed values.

  • To mark sample facts. Values you have to replace before launch end with # sample:

    price: 529000 # sample. Sale price in [listings] currency
    area: 1540 # sample. Floor area in [listings] areaUnit

Search the project for # sample to find every sample price, rating, count, promise, phone number and email. Replace the value and delete the comment once the fact is yours. If you can’t back up a figure, remove the item instead of keeping a made-up number.

Markdown Basics

## A section heading
### A smaller heading
Plain text. **Bold**, _italic_, and [a link](/properties/).
- A list item
- Another item
1. A numbered step
2. Another step
> A quote from a buyer or a landlord.
| Room | Size |
| -------- | ----------- |
| Kitchen | 14 × 12 ft |
  • Start headings at ##. The page title is already the # heading.
  • Links to other sites open in a new tab on their own.
  • Code blocks with three backticks get a copy button. [settings.markup.codeBlocks] theme in config.toml is auto (a light code window, like the page) or dark.

Heading Sizes

Add a class in square brackets at the end of a heading to set its size without changing its level:

## Five things to check in the kitchen [.h4]

The heading stays an h2 for search engines and screen readers, but is drawn at the h4 size.

Business Details In Text

In .md files, these tokens are replaced with your details from [business] in config.toml, so you never type them twice:

TokenBecomes
{name}The agency name
{phone}The phone number as shown
{email}The email address
{address}The office address
{hours}The opening hours
Call {phone} or email {email} to book a viewing.

In .mdx files a { starts code, so the tokens don’t work there. Write the details out, or keep that text in a .md file. Form notes and messages, the announcement bar text and a few section fields accept the tokens too, and their comments say so.

Blog Posts

Posts live in src/content/blog/<language>/, one .mdx file per post with the same file name in every language folder:

---
title: "What to ask at a viewing, and what to check yourself"
description: "A viewing goes by fast. These are the questions we tell buyers to ask."
image: "/images/lotline/blog/post-8.jpg"
imageAlt: "A white kitchen with a long wooden island and two pendant lamps"
date: 2026-09-25
author: "Marcus Lin"
categories: ["Buying"]
tags: ["viewings", "buying tips"]
draft: false
---
  • author is a name as written in English. When it matches an agent file (Marcus Lin and marcus-lin.md), the post shows that agent’s portrait, role and a link to their profile, in the page language. Any other name shows as written.
  • categories and tags build the category and tag pages under /blog/. A category or tag page with fewer than two posts is kept out of search results.
  • updated: 2026-10-01 marks the last real edit. Posts show it as “Updated”, and the structured data and sitemap use it.
  • The number of posts on each list page is blogPagination in [settings] of config.toml (6 by default).
  • The blog has an RSS feed per language.

Images In The Body

  • Frontmatter image fields such as image read from src/assets/images/: "/images/lotline/blog/post-8.jpg" is the file src/assets/images/lotline/blog/post-8.jpg, resized and compressed when the site builds.
  • In the body of an .mdx file, use <ImageList> and <ImageItem> (below) with the same kind of path.
  • A plain Markdown image can point at src/assets/images/ with a relative path, as the /components/ page does: ![A row of houses beside a field](../../../assets/images/lotline/areas/old-mill.jpg).

Photos inside a post’s text open larger when clicked. See Icons & Images for folders and photo shapes.

Shortcodes

These work in every .mdx file without an import. The list is src/lib/shortcodes.ts. The /components/ page shows each one with its code, and its source is src/content/pages/english/components.mdx.

Callout: a tip or a warning set apart from the text. type is note (the default), tip, warning or danger. Without a title, the type name shows. The older name <Notice> still works.

<Callout type="tip" title="Bring a tape measure">
Measure the spot where your sofa will go before the second viewing.
</Callout>

Steps: numbers the headings inside it. Each ## or ### heading starts a step.

<Steps>
### Book the valuation
Send the form, and we call you to pick a time.
### Walk through the home
The agent goes through each room with you.
</Steps>

ListCheck: turns a Markdown list into a checklist. columns={2} shows two columns on wider screens.

<ListCheck columns={2}>
- Clear the hallway and the stairs
- Open every blind before the viewing
</ListCheck>

Button: a theme button, with label, url and variant (accent, brand, outline, white, outline-white or text).

<Button label="Book a viewing" url="/properties/" />
<Button variant="outline" label="Talk to an agent" url="/contact/" />

Accordion: a question that opens. Rows with the same group close each other, and expanded="true" opens one on load.

<Accordion label="Do I need to be home for the valuation?" group="valuation" expanded="true">
Yes, if you can. The agent will have questions about the home.
</Accordion>

Tabs: content in tabs.

<Tabs>
<Tab name="Buyers">Ask how long the home has been on the market.</Tab>
<Tab name="Renters">Ask what the rent includes.</Tab>
</Tabs>

ImageList and ImageItem: photos in a grid with an optional caption. width="1/2" or "1/3" sets the share of the row, and videoSrc adds a play button.

<ImageList>
<ImageItem imageSrc="/images/lotline/properties/cedar-park-family-house/gallery-1.jpg" imageAlt="A bright living room with two gray sofas" caption="Staged with what the owners already had." />
</ImageList>

VideoInline: a video in the text. provider is youtube (the video id), vimeo or html5 (a file in public/videos/, with an optional poster). YouTube videos play through youtube-nocookie.com.

<VideoInline src="VIDEO_ID" provider="youtube" />

Drafts

draft: true in the frontmatter keeps a page or entry out of the built site, its lists, the sitemap and llms.txt. A draft listing also disappears from the properties page, the neighborhood pages and the agent pages. A draft: true in a collection’s -index.md hides the whole collection. The three homepages don’t read draft. See Homepages for how to remove one.

Do It With AI

Write a blog post about [TOPIC] as an .mdx file in src/content/blog/english/. Match the
frontmatter of the other posts there (title, description, image, imageAlt, date, author,
categories, tags, draft). Set author to the name of one of our agents in src/content/agents/.
Use ## headings and one <Callout type="tip"> or <ListCheck> where it helps. Keep it under
[N] words and use only facts I give you. Then write the French and Arabic versions in
src/content/blog/french/ and src/content/blog/arabic/ with the same file name.
Type something to search...