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

Collections

Files: src/content/practice-areas/, industries/, attorneys/, offices/, careers/ · Skill level: Beginner

A collection is a folder of entries that share a shape, with one page for each entry. Practice areas, industries, attorneys, offices and careers all work the same way:

  • -index.md sets up the list page (/practice-areas/, /attorneys/ and so on): its title, intro, labels and any section blocks.
  • Every other file is one detail page, named after its address. src/content/practice-areas/english/employment.md is published at /practice-areas/employment/.
  • Each language has its own folder (english/, french/, arabic/), and the same file name in each.

Results and insights are collections too. They have their own pages: Results & Reviews and Writing Content.

Fields Every Entry Uses

FieldWhat it does
titleThe name on cards and at the top of the page
descriptionThe card text, the search result text and the meta description
weightThe order in lists. Lower comes first. Careers use order instead
drafttrue keeps the entry out of the production build. It still shows in npm run dev
image, imageAltThe entry’s photo and its description for screen readers

Shared Labels: detailDefaults

Practice areas, industries and offices share part of their detail pages. Instead of repeating the same labels in every file, detailDefaults in -index.md holds them once:

src/content/practice-areas/english/-index.md
detailDefaults:
image: "/images/covena/office/office-meeting-room.jpg" # used when an area file sets no image
imageAlt: "Wood-panelled meeting room with a long table"
sidebarLabel: "Practice areas"
attorneysTitle: "Lawyers who handle this work"
attorneyLinkLabel: "View profile"
faqTitle: "Common questions"
resultTitle: "A matter we handled"
resultLinkLabel: "Read the full result"

An entry can set any of these keys itself to differ from the rest. Results have a detailDefaults block too, for their “Please note” heading and the lawyers and more-results headings.

Add An Entry

  1. Copy an entry file in src/content/<collection>/english/, for example employment.md.

  2. Rename the copy to the new address, in lowercase with hyphens: tax-disputes.md becomes /practice-areas/tax-disputes/.

  3. Change its title, weight and description, then the rest of its fields and its text.

  4. Do the same in french/ and arabic/, with the same file name and translated text.

  5. Run npm run dev and open the new page.

Some lists pick entries by slug, so a new entry doesn’t appear there until you add it. See each collection below.

Practice Areas

Folder: src/content/practice-areas/<language>/ · Pages: /practice-areas/ and 10 area pages

src/content/practice-areas/english/employment.md
title: "Employment"
icon: "users" # a Lucide icon name, shown on cards
weight: 2
description: "Contracts, disciplinaries, dismissals and settlement agreements, for employers and for employees."
image: "/images/covena/practice/practice-employment-site-workers.jpg"
imageAlt: "Workers in hi-vis vests on a work site, seen from behind"
relatedAttorneys: # attorney file names, shown as cards under the text
- "henry-lawson"
- "daniel-mercer"
caseStudiesSection:
items:
- "unfair-dismissal-claim" # result file names. The first shows as a card with the disclaimer
corporateFaq:
enable: true
title: "Typical questions"
list:
- title: "..."
content: "..."

The Markdown body below the frontmatter is the page text. Use ## headings, lists and links.

When you add or remove an area, also update the places that list areas by slug:

  • practiceGridNavy.items in src/content/practice-areas/<language>/-index.md (the /practice-areas/ grid)
  • items in src/content/sections/<language>/practice-grid-navy.md (Home 1), the groups in practice-rows.md (Home 2) and the cards in practice-situations.md (Home 3)
  • filters.groups in src/content/attorneys/<language>/-index.md (the filter chips on /attorneys/)
  • The “Practice areas” mega menu in src/config/menu.<lang>.json
  • The “Practice area” dropdown in the forms (contact-split-form.md, src/content/consultation/<language>/-index.md and the contact page)

Icons are Lucide names in lowercase with hyphens, such as scroll-text or key-round. See Icons & Images.

Industries

Folder: src/content/industries/<language>/ · Pages: /industries/ and 6 industry pages

src/content/industries/english/construction.md
title: "Construction"
weight: 1
description: "Contracts, payment disputes, site injuries and staff issues for contractors, subcontractors and developers."
image: "/images/covena/practice/practice-employment-site-workers.jpg"
imageAlt: "Site workers in hi-vis vests seen from behind"
practiceAreas: # practice area file names, shown as cards under the text
- "commercial-disputes"
- "employment"

The /industries/ page shows every industry file in weight order. The marquee on Home 2 lists its industries by slug in src/content/sections/<language>/industries-marquee-cards.md.

Attorneys

Folder: src/content/attorneys/<language>/ · Pages: /attorneys/ and 12 profiles

src/content/attorneys/english/daniel-mercer.md
title: "Daniel Mercer"
weight: 1
name: "Daniel Mercer"
firstName: "Daniel" # used in labels such as "Insights by Daniel"
role: "Managing partner"
office: "london" # an office file name
practiceAreas: # practice area file names: the filter chips and the profile list
- "business-corporate"
languages:
- "English"
- "French"
cardImage: "/images/covena/attorneys/attorney-senior-grey-hair-navy-suit.jpg"
cardImageAlt: "Daniel Mercer, managing partner at Covena Law"
heroImage: "/images/covena/attorneys/attorney-senior-grey-hair-navy-suit.jpg"
heroImageAlt: "Daniel Mercer, managing partner at Covena Law"
introBiography: "..."
additionalBiography: "..."
expertise:
- "Company sales and purchases"
certifications:
heading: "Qualifications"
list:
- "Solicitor, England and Wales (1991)"
education:
heading: "Education"
list:
- qualification: "LLB Law"
institution: "University of Bristol"
emailUrl: "mailto:[email protected]"
phone: "+44 20 7946 0321"
phoneUrl: "tel:+442079460321"

The list page (-index.md) holds the filter chips and every label on the cards and profiles:

  • filters.groups: each chip lists practice area slugs. A lawyer shows under a chip when one of their practiceAreas is in it.
  • profileLabels: the words on the profile, such as “Qualified”, “Languages” and “Email {name}”. {name} is replaced with the lawyer’s name.

Each profile also lists the lawyer’s insight posts: a post shows there when its author is the lawyer’s title. Every profile carries structured data for search engines (a Person), built from these fields.

Home 2, Home 3 and About show lawyers by file name: team-carousel.md, team-grid-4.md and team-panel.md in src/content/sections/<language>/. Practice area, office and result pages show lawyers by file name too, so update those lists when someone joins or leaves.

Offices

Folder: src/content/offices/<language>/ · Pages: /offices/ and 3 office pages

src/content/offices/english/london.md
title: "London"
weight: 1
city: "London"
description: "..."
image: "/images/covena/office/office-reception-lounge.jpg"
imageAlt: "Quiet waiting lounge with armchairs and a tall plant"
address: "48 Carver Street, London EC4A 2BN"
phone: "+44 20 7946 0321"
phoneUrl: "tel:+442079460321"
mapUrl: "https://www.google.com/maps/search/?api=1&query=48+Carver+Street+London+EC4A+2BN"
hours:
- "Monday to Friday, 08:30 to 18:00"
- "Saturday, 09:00 to 13:00"
attorneys: # attorney file names based here
- "daniel-mercer"
practiceAreas: # practice area file names handled here
- "business-corporate"

The office files feed more than the office pages: the office cards on /offices/ and /contact/, the city strip above the bar header (Home 2) and the office columns in the offices footer (Home 3). mapUrl is any maps link. The theme embeds no map, so it needs no API key.

The office -index.md holds the labels on the office cards and pages in detailDefaults (“Address”, “Opening hours”, “Get directions” and so on). The firm’s main phone, email, address and hours are set separately: see Firm Info.

Careers

Folder: src/content/careers/<language>/ · Pages: /careers/ and 4 role pages

src/content/careers/english/paralegal.md
title: "Paralegal"
description: "..."
order: 4 # list order, lower first
location: "Manchester, on site"
employmentType: "Full-time"
experience: "Law degree, or a year or more in a law firm"
salary: "£25,000 to £29,000 a year"
closingDate: "..." # optional, shown in the role facts when set
image: "/images/covena/careers/careers-library-study.jpg"
imageAlt: "..."

The role text is the Markdown body. -index.md holds the parts every role shares: the openings heading and labels, the benefits list, roleLabels, and the application form on every role page. The apply form asks for a link to a CV, not a file upload. See Forms.

The sample roles use [email protected]. Change it in -index.md, or set draft: true there when you have no open roles.

Remove An Entry

Delete its file in every language folder, or set draft: true in each. Then remove its slug from the lists that name it (the ones above), and any menu link to it. npm run verify reports broken links.

Do It With AI

Add a practice area called "[NAME]" to the Covena site. Copy
src/content/practice-areas/english/employment.md to [slug].md in english, french and arabic, and
rewrite its title, icon (a Lucide icon name), weight, description, image and text from these
notes: [NOTES]. Add the slug to practiceGridNavy in practice-areas/<language>/-index.md, to
practice-grid-navy.md in src/content/sections/<language>/, to the "Practice areas" mega menu in
every src/config/menu.<lang>.json and to the "Practice area" dropdown in the forms. Then run
npm run astro-check and npm run build.
Type something to search...