File Structure
Skill level: Everyone · Time: 5 minutes
Inside The Theme Folder
You don’t need to understand every folder. Most changes happen in the places marked in bold below.
Directorylotline/
Directory.cursor/
Directoryrules/
- theme-architecture.mdc rules for the Cursor editor
Directory.github/
- copilot-instructions.md instructions for GitHub Copilot
Directory.vscode/ recommended VS Code extensions and settings
- …
Directory.windsurf/
Directoryrules/
- theme-architecture.md rules for the Windsurf editor
Directorypublic/ files served as they are (favicons, the shared social image, and the
_headersand.htaccesshost settings)- …
Directoryscripts/ helper scripts behind the
npm runcommands- …
Directorysrc/
Directoryassets/
Directoryimages/
Directorylotline/ the demo photos, one folder per kind (heroes, properties, agents, areas, services, blog, and more), optimized at build time
- …
Directoryicons/ social and Ask AI icons
- …
- logo.svg logo-on-dark.svg favicon.svg the Lotline mark as files
Directoryconfig/ site-wide settings
- config.toml site name, URL, agency details, listings, forms, layouts, SEO, cookies, motion
- fonts.json fonts
- language.json languages
- menu.en.json header and footer links (English)
- menu.fr.json header and footer links (French)
- menu.ar.json header and footer links (Arabic)
- social.json social media links
Directorycontent/ all text, images, and options
Directoryproperties/ one file per home for sale or rent
Directoryenglish/
- …
Directoryfrench/
- …
Directoryarabic/
- …
Directorydevelopments/ one file per new development
- …
Directoryagents/ one file per agent
- …
Directoryneighborhoods/ one guide per neighborhood
- …
Directoryservices/ one file per service
- …
Directorysections/ default content of every section
- …
Directoryhomepage/ the 3 homepages
- …
Directoryreviews/ careers/ blog/ about-us/ contact/ faq/ one folder per page or collection
- …
Directorypages/ legal pages, valuation, how it works, reviews, and the two sample galleries
- …
- _file_format.md every page frontmatter field, explained
Directoryi18n/ small interface text (button labels, form messages, footer text, SEO tagline)
- en.json
- fr.json
- ar.json
Directorylayouts/
- Base.astro the page shell (head, header, call to action, footer, cookie banner, scripts)
Directorycomponents/
Directorysections/ one component per section
- …
Directoryproperty/ the listing filters, facts, and photo gallery
- …
Directorycards/ property, agent, blog, and review cards
- …
Directorywidgets/ smaller parts (page header, forms, cookie banner, mobile menu, Ask AI links)
- …
Directoryglobal/ header, footer, logo
- …
Directoryseo/ head tags
- …
Directoryutilities/ images and the back-to-top button
- …
Directoryhelpers/ icon components
- …
Directoryshortcodes/ components you can use inside MDX files
- …
Directorylib/ helper code (listings, prices, agency details, opening hours, structured data)
- brandMark.ts the built-in logo mark
Directorypages/
Directory[…lang]/ one file per route (which sections a page shows, in which order)
- …
- robots.txt.ts builds
/robots.txt
Directoryplugins/ build helpers
- …
Directoryscripts/
- motion.ts the scroll motion script
Directorystyles/
- theme.css colors, type scale, breakpoints, radii
- motion.css the scroll motion styles
- rtl.css rules for right-to-left pages
- navigation.css the header menus
- base.css components.css … global styles
- content.config.ts fields allowed in each collection
- sections.schema.ts fields and layouts allowed in each section
- AGENTS.md CLAUDE.md GEMINI.md SKILLS.md instructions and recipes for AI assistants
- CHANGELOG.md what changed in each version
- README.md requirements, commands, credits, and the “Before you launch” list
- astro.config.mjs
- netlify.toml vercel.json vercel.sh wrangler.toml hosting settings
- package.json package-lock.json
The Three Layers
Lotline keeps three jobs apart. Knowing which layer you need saves a lot of searching:
| Layer | Folder | Decides | You edit it to… |
|---|---|---|---|
| Content | src/content/ | What the page says: text, listings, photos, links, options | Change copy, listings, buttons, layouts |
| Pages | src/pages/[...lang]/ | Which sections a page shows and in which order | Reorder, add, or remove sections |
| Design | src/layouts/, src/styles/ | How each section looks and behaves | Change markup, styles, or behavior |
Global settings sit beside them in src/config/.
How Content Folders Are Named
Every content folder has one subfolder per language, and a few file name rules:
english/,french/, andarabic/hold the same files. Each language reads only its own folder, so keep them in step when you add or rename a file.npm run check-i18nlists any file that exists in one language only.-index.mdis the content of a list or landing page, for examplesrc/content/properties/english/-index.mdfor/properties/.- Every other file is one entry. Its name becomes the URL unless the file sets
customSlug:src/content/properties/english/elm-hill-modern-villa.mdis/properties/elm-hill-modern-villa/, andsrc/content/agents/english/daniel-hart.mdis/agents/daniel-hart/. - Listings point at agents and neighborhoods by file name (
agent: "daniel-hart",neighborhood: "elm-hill"). If you rename an agent or neighborhood file, update the listings that point at it. - Files that start with
_are ignored.src/content/_file_format.mdexplains the common page frontmatter fields. The full list is thepageschema insrc/content.config.ts.
Path Shortcuts In Code
Component files import each other through shortcuts defined in tsconfig.json:
| Shortcut | Real folder |
|---|---|
@/components/* | src/layouts/components/* |
@/shortcodes/* | src/layouts/shortcodes/* |
@/helpers/* | src/layouts/helpers/* |
@/* | src/* |
There is no src/components/ folder: @/components/sections/HeroSection.astro is src/layouts/components/sections/HeroSection.astro.