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.
Directorycovena/
Directory.cursor/
Directoryrules/
- theme-architecture.mdc rules for the Cursor editor
Directory.github/
- copilot-instructions.md instructions for GitHub Copilot
Directoryworkflows/
- verify.yml runs
npm run verifyon GitHub
- verify.yml runs
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, and the checksnpm run verifyruns- …
Directorysrc/
Directory__tests__/ unit tests (
npm run test)- …
Directoryassets/
Directoryimages/ your images, optimized at build time
Directorycovena/ demo photos, one folder per area (attorneys, hero, practice, office, blog, …)
- …
Directoryicons/ social and custom icons
- …
- logo.svg the logo file for light backgrounds
- logo-light.svg the logo file for dark backgrounds
- favicon.png the source of the favicons
Directoryconfig/ site-wide settings
- config.toml site name, URL, contact details, forms, header, quick exit, motion, SEO, cookies
- 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
Directorysections/ default content of every section
Directoryenglish/
- …
Directoryfrench/
- …
Directoryarabic/
- …
Directoryhomepage/ the 3 homepages (
-index.md,home-corporate.md,home-family.md)- …
Directorypractice-areas/ one file per practice area
- …
Directoryindustries/ one file per industry
- …
Directoryattorneys/ one file per lawyer
- …
Directoryresults/ one file per case result
- …
Directoryoffices/ one file per office
- …
Directorycareers/ one file per open role
- …
Directoryblog/ insights posts (published under
/insights/)- …
Directoryabout/ contact/ consultation/ faq/ fees/ recognition/ reviews/ one folder per single page
- …
Directorypages/ legal pages and the component gallery
- …
- _file_format.md every page frontmatter field, explained
Directoryi18n/ small interface text (button labels, form messages, footer text, the main address)
- en.json
- fr.json
- ar.json
Directorylayouts/
- Base.astro the page shell (head, header, footer, cookie banner, scripts)
Directorycomponents/
Directorysections/ one component per section, grouped by kind (
hero/,practice/,team/, …)- section-ownership.md every section, its content file, and the pages that use it
Directoryglobal/ header, footers, logo, head tags
- …
Directorycards/ attorney, insight, office, and result cards
- …
Directorywidgets/ forms, accordion, marquee, cookie banner, back-to-top button
- …
Directoryshortcodes/ components you can use in Markdown (MDX) files
- …
Directorylib/ helpers: content loading, routes, motion, SEO, forms
- …
Directorypages/
Directory[…lang]/ one file per route, listing the sections of that page in order
- …
Directorystyles/
- theme.css colors, radii, spacing, type scale, breakpoints
- motion.css scroll motion styles
- content.config.ts the fields each collection accepts
- sections.schema.ts the fields each section accepts
- AGENTS.md instructions for AI coding tools (read by most of them)
- CLAUDE.md for Claude Code (imports AGENTS.md)
- GEMINI.md for Gemini CLI (imports AGENTS.md)
- SKILLS.md step-by-step recipes for common jobs
- README.md setup, features, and the launch list
- PUBLIC-VALUES-NEEDED.md every demo value to replace, and the file it lives in
- CHANGELOG.md what changed in each version
- astro.config.mjs Astro settings
- netlify.toml, vercel.json, vercel.sh, wrangler.toml host settings
- package.json
- package-lock.json
The Three Layers
Covena keeps three things apart, so you can change one without touching the others:
| Layer | What it is | Where |
|---|---|---|
| Content | Text, images, buttons, lists, and per-page changes | src/content/, src/i18n/, src/config/ |
| Layout | Which sections a page shows, and in which order | src/pages/[...lang]/ |
| Look | Colors, type, spacing, and how each section is drawn | src/styles/, src/layouts/components/ |
Most buyers only ever touch the content layer. See How Covena Works.
How Content Folders Are Named
Every folder in src/content/ has one subfolder per language, named after the language (english, french, arabic). The language files in src/i18n/ and the menus in src/config/ use the short code instead (en, fr, ar). Both names are set in src/config/language.json.
Inside a collection folder, -index.md sets up the list page and each other file is one detail page, named after its address:
| File | Page |
|---|---|
src/content/practice-areas/english/-index.md | /practice-areas/ |
src/content/practice-areas/english/employment.md | /practice-areas/employment/ |
src/content/practice-areas/french/employment.md | /fr/practice-areas/employment/ |
src/content/blog/english/first-consultation-what-happens.mdx | /insights/first-consultation-what-happens/ |
Keep the same file name in every language folder, so the language switcher can find the matching page.
Path Shortcuts In Code
Components import each other with short paths set in tsconfig.json:
| Shortcut | Folder |
|---|---|
@/components/* | src/layouts/components/* |
@/shortcodes/* | src/layouts/shortcodes/* |
@/helpers/* | src/layouts/helpers/* |
@/* | src/* |
For example, @/components/sections/hero/HeroPortraitNavy.astro is src/layouts/components/sections/hero/HeroPortraitNavy.astro.