Pages
Files: src/pages/[...lang]/ (routes and section order), src/content/ (text) · Skill level: Beginner to edit, light code to add a page with sections
Every page has two parts. The route file in src/pages/[...lang]/ decides which sections the page shows, in which order, and which header and footer it uses. The content file in src/content/ holds the text. You change the text in the content file. You only open the route file to add, remove or reorder sections.
The addresses below are for English. French pages add /fr/ and Arabic pages add /ar/, and each language reads its own content folder (english/, french/, arabic/).
Every Page And Its File
Homepages
| Address | Content file | Sections, top to bottom |
|---|---|---|
/ | src/content/homepage/english/-index.md | Portrait hero, three features, about collage, practice grid, why us, process cards, testimonial slider, insights panel, contact form |
/home-corporate/ | src/content/homepage/english/home-corporate.md | Framed hero with stats, client logos, statement, practice rows, industries marquee, portraits band, team carousel, results cards, featured insights, navy call to action |
/home-family/ | src/content/homepage/english/home-family.md | Full-photo hero, award badges, practice situations, fixed fees, process steps, centred quote, team grid, FAQ, callback form |
Homepages covers the three homes and their headers and footers.
Practice, People And Results
| Address | Content file | What’s on it |
|---|---|---|
/practice-areas/ | src/content/practice-areas/english/-index.md | Navy grid of every area, why us, testimonials, contact form |
/practice-areas/<slug>/ (10 pages) | src/content/practice-areas/english/<slug>.md | The area’s text, the lawyers who handle it, one result, its questions, contact form |
/industries/ | src/content/industries/english/-index.md | Navy page header, a card per industry, contact form |
/industries/<slug>/ (6 pages) | src/content/industries/english/<slug>.md | The industry’s text, the practice areas that help, contact form |
/attorneys/ | src/content/attorneys/english/-index.md | Filter chips by practice group, a card per lawyer, contact form |
/attorneys/<slug>/ (12 profiles) | src/content/attorneys/english/<slug>.md | Photo, biography, expertise, qualifications, education, languages, contact links, the lawyer’s insights |
/results/ | src/content/results/english/-index.md | Filter chips by practice, a card per result with the disclaimer, call to action |
/results/<slug>/ (6 pages) | src/content/results/english/<slug>.md | Facts row, the story, a client quote, the lawyers on the matter, more results, contact form |
/reviews/ | src/content/reviews/english/-index.md | Rating summary, review cards, a note, contact form |
/recognition/ | src/content/recognition/english/-index.md | Awards and accreditations, press mentions, call to action |
Working With The Firm
| Address | Content file | What’s on it |
|---|---|---|
/fees/ | src/content/fees/english/-index.md | Three ways we charge, fixed fee table, hourly rates, billing text, fee questions, call to action |
/faq/ | src/content/faq/english/-index.md | Questions in tabs (one tab per group), a contact strip |
/consultation/ | src/content/consultation/english/-index.md | The consultation form, what happens next, phone and opening hours |
/contact/ | src/content/contact/english/-index.md | Contact form, contact tiles, office cards |
/offices/ | src/content/offices/english/-index.md | A card per office, a short text, contact form |
/offices/<slug>/ (3 pages) | src/content/offices/english/<slug>.md | Address, hours, phone, map link, the office’s lawyers and practice areas, contact form |
The Firm
| Address | Content file | What’s on it |
|---|---|---|
/about/ | src/content/about/english/-index.md | Stats band, the firm’s story, process cards, values, team panel, contact form |
/history/ | src/content/sections/english/company-page.md | Navy page header, timeline by year, community block, call to action |
/careers/ | src/content/careers/english/-index.md | Values, open roles, benefits, call to action |
/careers/<slug>/ (4 roles) | src/content/careers/english/<slug>.md | Role facts (office, hours, experience, salary), the role text, the apply form |
Insights, Search And Text Pages
| Address | Content file | What’s on it |
|---|---|---|
/insights/ and /insights/page/2/ | src/content/blog/english/-index.md | The newest post featured, a grid of posts, category links, newsletter panel |
/insights/<slug>/ | src/content/blog/english/<slug>.mdx | The post, its author box, related posts |
/insights/category/<name>/, /insights/tag/<name>/ | made from the posts’ categories and tags | Posts in that category or with that tag |
/insights/rss.xml | made from the posts | RSS feed, one per language |
/search/ | src/content/sections/english/search-list.md | Search across insights, practice areas, attorneys, results, industries, offices and roles. See Search |
/privacy-policy/, /terms/, /disclaimer/, /regulatory-information/, /accessibility/ | src/content/pages/english/<slug>.md | Legal text in sections, with a “Last updated” line and a contact box |
/components/ | src/content/pages/english/components.mdx | Every text style and shortcode, and the scroll motion demos |
| 404 | notFound in src/i18n/<lang>.json | A “Page not found” page in each language, with links home and to search |
The site also builds /llms.txt, /llms-full.txt, Markdown copies of detail and legal pages, robots.txt and a sitemap. See AI Links & llms and SEO & AI Visibility.
The Legal Pages
The five legal pages share one design. Their text is not in the Markdown body but in the legalPage block of the frontmatter:
legalPage: lastUpdated: "Last updated: 4 December 2026" sections: - title: "Our regulator" paragraphs: - "Covena Law is authorised and regulated by [Regulator], number [000000]." list: # optional bullet points under the paragraphs - "..." contact: title: "..." description: "..." phone: "..." phoneUrl: "tel:..." email: "..." emailUrl: "mailto:..." button: enable: true label: "Contact us" url: "/contact/"Fields Every Page Accepts
Every content file can use these frontmatter fields. src/content/_file_format.md lists them with comments.
| Field | What it does |
|---|---|
title, description | The page title and intro, also the default meta title and description |
metaTitle, metaDescription | Replace the title and description in search results only |
image | The image used when the page is shared |
canonical | The preferred address, if the same content is on another page |
keywords | Keywords for this page |
robots | For example "noindex, nofollow" to keep a page out of search engines |
draft | true keeps the page out of the production build (it still shows in npm run dev) |
excludeFromSitemap | true leaves the page out of the sitemap |
excludeFromAi | true leaves the page out of llms.txt and its Markdown copy |
disableTagline | true drops the tagline from the end of this page’s title |
customSlug | A different address for the page. Use the same value in every language |
footerReveal | true makes the page slide up off the footer (see Animations) |
Add A Page
A text page (no sections, just headings and paragraphs):
-
Create
src/content/pages/english/<slug>.md, for examplecomplaints.md, with atitle, adescriptionand your text in Markdown. -
Create the same file in
src/content/pages/french/andsrc/content/pages/arabic/, with the text in each language. -
Add a link to it in
src/config/menu.<lang>.jsonfor every language. See Menus.
The page is published at /complaints/ and uses the centred page header. Copy components.mdx if you want an .mdx page with shortcodes.
A page with sections needs a route file:
-
Add
src/pages/[...lang]/<page>.astro. Copy a similar page, such asrecognition.astro. ItsgetStaticPaths()returnsgeneratePaths(), which builds the page in every language. -
Import the sections you want and place them inside
Base, in order. SetheaderVariantandfooterVariantonBaseif you don’t want the defaults (panelandmarquee). -
Put the text in content files, not in the route file, so each language has its own copy.
-
Add the page to the menus in every language.
Remove A Page
- A list page and its detail pages: set
draft: truein its-index.md, for examplesrc/content/industries/english/-index.md. For practice areas, industries, attorneys, offices and careers, a draft list page also keeps its detail pages out of the build. Results don’t work that way: setdraft: truein each result file as well. Do it in every language. - One detail page: set
draft: truein its file, or delete the file in every language. - History: set
enable: falseinsrc/content/sections/<language>/company-page.md. - A homepage: the homepages don’t read
draft. Delete the route file (home-corporate.astroorhome-family.astro) and its content files. - A legal or text page: delete its file in
src/content/pages/in every language.
Then remove the links to it from the menus, the footer and any buttons that point at it. npm run verify reports links to pages that no longer exist.
Do It With AI
Add a text page at /complaints/ to the Covena site. Create complaints.md insrc/content/pages/english, french and arabic with a title, a description and this text:[TEXT], translated for French and Arabic. Add a "Complaints" link to footerLegal in everysrc/config/menu.<lang>.json. Then run npm run build and check /complaints/, /fr/complaints/ and/ar/complaints/.