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

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

AddressContent fileSections, top to bottom
/src/content/homepage/english/-index.mdPortrait 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.mdFramed 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.mdFull-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

AddressContent fileWhat’s on it
/practice-areas/src/content/practice-areas/english/-index.mdNavy grid of every area, why us, testimonials, contact form
/practice-areas/<slug>/ (10 pages)src/content/practice-areas/english/<slug>.mdThe area’s text, the lawyers who handle it, one result, its questions, contact form
/industries/src/content/industries/english/-index.mdNavy page header, a card per industry, contact form
/industries/<slug>/ (6 pages)src/content/industries/english/<slug>.mdThe industry’s text, the practice areas that help, contact form
/attorneys/src/content/attorneys/english/-index.mdFilter chips by practice group, a card per lawyer, contact form
/attorneys/<slug>/ (12 profiles)src/content/attorneys/english/<slug>.mdPhoto, biography, expertise, qualifications, education, languages, contact links, the lawyer’s insights
/results/src/content/results/english/-index.mdFilter chips by practice, a card per result with the disclaimer, call to action
/results/<slug>/ (6 pages)src/content/results/english/<slug>.mdFacts row, the story, a client quote, the lawyers on the matter, more results, contact form
/reviews/src/content/reviews/english/-index.mdRating summary, review cards, a note, contact form
/recognition/src/content/recognition/english/-index.mdAwards and accreditations, press mentions, call to action

Working With The Firm

AddressContent fileWhat’s on it
/fees/src/content/fees/english/-index.mdThree ways we charge, fixed fee table, hourly rates, billing text, fee questions, call to action
/faq/src/content/faq/english/-index.mdQuestions in tabs (one tab per group), a contact strip
/consultation/src/content/consultation/english/-index.mdThe consultation form, what happens next, phone and opening hours
/contact/src/content/contact/english/-index.mdContact form, contact tiles, office cards
/offices/src/content/offices/english/-index.mdA card per office, a short text, contact form
/offices/<slug>/ (3 pages)src/content/offices/english/<slug>.mdAddress, hours, phone, map link, the office’s lawyers and practice areas, contact form

The Firm

AddressContent fileWhat’s on it
/about/src/content/about/english/-index.mdStats band, the firm’s story, process cards, values, team panel, contact form
/history/src/content/sections/english/company-page.mdNavy page header, timeline by year, community block, call to action
/careers/src/content/careers/english/-index.mdValues, open roles, benefits, call to action
/careers/<slug>/ (4 roles)src/content/careers/english/<slug>.mdRole facts (office, hours, experience, salary), the role text, the apply form

Insights, Search And Text Pages

AddressContent fileWhat’s on it
/insights/ and /insights/page/2/src/content/blog/english/-index.mdThe newest post featured, a grid of posts, category links, newsletter panel
/insights/<slug>/src/content/blog/english/<slug>.mdxThe post, its author box, related posts
/insights/category/<name>/, /insights/tag/<name>/made from the posts’ categories and tagsPosts in that category or with that tag
/insights/rss.xmlmade from the postsRSS feed, one per language
/search/src/content/sections/english/search-list.mdSearch across insights, practice areas, attorneys, results, industries, offices and roles. See Search
/privacy-policy/, /terms/, /disclaimer/, /regulatory-information/, /accessibility/src/content/pages/english/<slug>.mdLegal text in sections, with a “Last updated” line and a contact box
/components/src/content/pages/english/components.mdxEvery text style and shortcode, and the scroll motion demos
404notFound in src/i18n/<lang>.jsonA “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 five legal pages share one design. Their text is not in the Markdown body but in the legalPage block of the frontmatter:

src/content/pages/english/regulatory-information.md
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.

FieldWhat it does
title, descriptionThe page title and intro, also the default meta title and description
metaTitle, metaDescriptionReplace the title and description in search results only
imageThe image used when the page is shared
canonicalThe preferred address, if the same content is on another page
keywordsKeywords for this page
robotsFor example "noindex, nofollow" to keep a page out of search engines
drafttrue keeps the page out of the production build (it still shows in npm run dev)
excludeFromSitemaptrue leaves the page out of the sitemap
excludeFromAitrue leaves the page out of llms.txt and its Markdown copy
disableTaglinetrue drops the tagline from the end of this page’s title
customSlugA different address for the page. Use the same value in every language
footerRevealtrue makes the page slide up off the footer (see Animations)

Add A Page

A text page (no sections, just headings and paragraphs):

  1. Create src/content/pages/english/<slug>.md, for example complaints.md, with a title, a description and your text in Markdown.

  2. Create the same file in src/content/pages/french/ and src/content/pages/arabic/, with the text in each language.

  3. Add a link to it in src/config/menu.<lang>.json for 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:

  1. Add src/pages/[...lang]/<page>.astro. Copy a similar page, such as recognition.astro. Its getStaticPaths() returns generatePaths(), which builds the page in every language.

  2. Import the sections you want and place them inside Base, in order. Set headerVariant and footerVariant on Base if you don’t want the defaults (panel and marquee).

  3. Put the text in content files, not in the route file, so each language has its own copy.

  4. Add the page to the menus in every language.

Remove A Page

  • A list page and its detail pages: set draft: true in its -index.md, for example src/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: set draft: true in each result file as well. Do it in every language.
  • One detail page: set draft: true in its file, or delete the file in every language.
  • History: set enable: false in src/content/sections/<language>/company-page.md.
  • A homepage: the homepages don’t read draft. Delete the route file (home-corporate.astro or home-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 in
src/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 every
src/config/menu.<lang>.json. Then run npm run build and check /complaints/, /fr/complaints/ and
/ar/complaints/.
Type something to search...