# Pages

## 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](/covena/customization/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](/covena/customization/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](/covena/features/ai-links-llms/) and [SEO & AI Visibility](/covena/customization/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:

```yaml
# 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/"
```

<Aside type="caution" title="Rewrite these before you launch">
  The legal pages are written for the sample firm. The regulator line, firm
  number, VAT number, insurer and ombudsman on `/regulatory-information/` are
  placeholders in square brackets. Replace them with your own details, and
  have the privacy policy, terms, disclaimer and accessibility statement
  checked for your firm. The theme can't do that part for you.
</Aside>

### 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](/covena/customization/animations/)) |

### Add A Page
**A text page** (no sections, just headings and paragraphs):

<Steps>

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](/covena/customization/menus/).

</Steps>

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:

<Steps>

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.

</Steps>

### 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
```text
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/.
```