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

Section Layouts

Skill level: Beginner · Time: 1 minute per section

Many Lotline sections can be drawn in more than one way. The hero has three looks, one per homepage, and so do the listings, the services and the reviews. You pick one with a single line, and the section keeps its copy:

options:
layout: "carousel"

No code changes: every layout of a section reads the same fields. A few layouts use an extra optional field (the photos beside the quote reviews, the side of the card in card-over-photo), shown as a comment in the section file or in the homepage file that uses it.

Where To Set A Layout

Set it in…It applies to…
The section file, src/content/sections/<language>/<section>.mdEvery page that shows the section without its own layout
A page block, for example reviewsSection: in a page fileThat page only

Set it in every language folder. Without a layout value, a section uses the first value in its list below.

Copy the value from the comment next to layout: or from the catalog below. Section files have no schema, so npm run astro-check doesn’t report a misspelled value there: open the page to check it. In page blocks of files with a schema (for example homepage/english/home-2.md), astro-check reports a value that doesn’t exist.

Preview Every Layout: /elements/

The Lotline layout gallery at /elements/ with the list of sections and their layouts

Run npm run dev and open http://localhost:4321/elements/. It shows every section that has two layouts or more, in each layout, with the section’s default content, so you can compare looks before you choose. The list at the top jumps to each section and each layout, and each preview names the value to copy. The page also shows the page header layouts, the scroll motion, buttons and form fields, and ends with notes on the header and footer layouts.

The gallery’s copy is in src/content/pages/english/elements.md (and each other language folder). The page is noindex and left out of the sitemap. Before launch, keep it as a private reference or delete src/pages/[...lang]/elements.astro and the elements.md files. It isn’t linked from the menus.

Layout Catalog

The values come from the layoutOption([...]) lists in src/sections.schema.ts. The first value of each section is its default. The page in brackets shows it in use.

Hero

File: hero-section.md · Block: heroSection

LayoutWhat it looks like
photo-search(/) A full-bleed photo under the see-through header, the title, one line, a Buy / Rent choice and a keyword search box
framed(/home-2/) A centered title and line, a Buy / Rent choice over a white search box with a keyword field, a property type select and a max price select, then a wide framed photo
panel(/home-3/) A pine panel with the title, the line and a white search card (neighborhood, bedrooms, max rent), beside a tall photo

Each layout has its own search fields. Listing Search explains them.

Logos

File: logos-section.md · Block: logosSection

LayoutWhat it looks like
band(/) A lime band over the foot of the hero, the label on the start side and the logos drifting with the scroll
row(/contact/) A centered label over one row of logos

Listings

File: listings-section.md · Block: listingsSection

LayoutWhat it looks like
grid(/) Property cards, three to a row, with a button under them
carousel(/home-2/) Property cards in a row you can slide
tabs(/home-3/) One tab per status (for rent, for sale), each with its own cards and button. The tabs come from the tabs list

Services

File: services-section.md · Block: servicesSection

LayoutWhat it looks like
photo-cards(/) One photo card per service, with its fee line
list(/home-3/) One row per service: name, summary, fee line and an arrow, between thin lines
grid-2(/services/) Two wide photo cards to a row

Why Us

File: why-us-section.md · Block: whyUsSection

LayoutWhat it looks like
card-over-photo(/, /about/) A white card with the title and the list over a full-bleed photo. cardSide: "start" or "end" picks the side of the card
rows(/home-3/) The title and text beside one row per item

Steps

File: steps-section.md · Blocks: stepsSection, sellingStepsSection

LayoutWhat it looks like
row(/home-3/) One column per step, with an optional photo over each
timeline(/how-it-works/) A schedule: the meta label of each step (“Day 1”, “Week 1”) in a time column, with a photo beside the step

Reviews

File: reviews-section.md · Block: reviewsSection

LayoutWhat it looks like
carousel(/) Review cards with portraits, the active one larger. Shows 8 reviews unless you set limit
grid(/home-3/, /valuation/) Three review cards to a row. Shows 3 unless you set limit
quote(/home-2/) One large quote beside a photo. The photos come from the photos list, one per review in turn. Shows 3 unless you set limit

FAQ

File: faq-section.md · Block: faqSection

LayoutWhat it looks like
centered(/, /faq/) The title over one column of questions
split(/home-3/) The title, text and an optional button beside the questions

options.firstOpen: false keeps the first question closed (it opens by default).

Inquiry Form

File: enquiry-section.md · Block: enquirySection

LayoutWhat it looks like
forest(/, property pages) A pine panel with the title, your email and phone, and a form with underline fields
card(/home-3/, development pages) A photo beside a white form card

Call To Action

File: call-to-action.md · Block: ctaSection

LayoutWhat it looks like
photo(/) A photo panel with centered white copy and a lime button
pine(/home-2/) A pine panel with the copy and a button beside an inset photo
lime(/home-3/) A lime band with the copy on one side and a pine button on the other

image is the panel photo in photo and the inset photo in pine. Leave it empty for a flat panel.

Numbers

File: stats-section.md · Block: statsSection

LayoutWhat it looks like
band(/home-2/) Four figures in a row with thin rules between them, no visible title
row(/about/, /how-it-works/) The title beside a paragraph, then four figures, each with a short note

A figure with from: "rating" reads its value from sections/<language>/rating.md, so your average score is typed once.

Sections With One Layout

These sections have one layout for now: video (framed), developments (split), neighborhoods (grid), agents (row), blog teaser (row), valuation request (split), story (intro), values (cards), open roles (rows), wide photo (panel), not found (band), blog list and related posts (default). You don’t need to set their layout.

Every inner page opens with a page header. Its title is the page’s title. The rest is in a pageHeader block of the page file:

src/content/neighborhoods/english/-index.md
pageHeader:
breadcrumb: true
description: "Six neighborhoods we know street by street."
image: "/images/lotline/areas/cedar-park.jpg"
imageAlt: "Tree-lined street of family houses"
options:
layout: "band" # band | tall | plain
LayoutWhat it looks like
bandA photo band with the breadcrumb and a centered white title. Most pages use it
tallA taller photo band. Property, development, neighborhood and service pages use it with the entry’s own photo
plainWhite, with the title on the start side. The legal pages use it
FieldWhat it does
breadcrumbtrue shows the breadcrumb over the title
descriptionOne line under the title
primaryButton, secondaryButton, buttonsButtons under the title. buttons adds more after the secondary one
image, imageAltThe band photo. Without one, the page uses [settings.pageHeader] image in config.toml, and with that empty too, a flat pine band

Use a darker photo for the band, so the white title stays easy to read.

The site header (overlay, bar, utility) and footer (columns, pine, minimal) are set in [settings.layout] in config.toml, and per page with headerLayout and footerLayout. See Header and Footer.

What The Homepages Use

Section//home-2//home-3/
Herophoto-searchframedpanel
Logosband
Numbersband
Listingsgridcarouseltabs
Stepsrow
Why uscard-over-photorows
Servicesphoto-cardslist
Reviewscarouselquotegrid
Inquiry formforestcard
FAQcenteredsplit
Call to actionphotopinelime
Header / footeroverlay / columnsbar / pineutility / minimal

The agency home also has the video (framed). The developments home also has developments (split), neighborhoods (grid), agents (row) and the blog teaser (row).

Do It With AI

Change the layout of the [SECTION] section to "[LAYOUT]" on [PAGE, or "every page"].
Use only a value from the layoutOption list for that section in src/sections.schema.ts.
For one page, set options.layout in that page's named block. For every page, set it in
src/content/sections/<language>/<section>.md. Do it in every language folder, then run
npm run astro-check.
Type something to search...