Collections (Practice Areas, Attorneys, Offices & More)
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.mdsets 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.mdis 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
| Field | What it does |
|---|---|
title | The name on cards and at the top of the page |
description | The card text, the search result text and the meta description |
weight | The order in lists. Lower comes first. Careers use order instead |
draft | true keeps the entry out of the production build. It still shows in npm run dev |
image, imageAlt | The 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:
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
-
Copy an entry file in
src/content/<collection>/english/, for exampleemployment.md. -
Rename the copy to the new address, in lowercase with hyphens:
tax-disputes.mdbecomes/practice-areas/tax-disputes/. -
Change its
title,weightanddescription, then the rest of its fields and its text. -
Do the same in
french/andarabic/, with the same file name and translated text. -
Run
npm run devand 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
title: "Employment"icon: "users" # a Lucide icon name, shown on cardsweight: 2description: "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 disclaimercorporateFaq: 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.itemsinsrc/content/practice-areas/<language>/-index.md(the/practice-areas/grid)itemsinsrc/content/sections/<language>/practice-grid-navy.md(Home 1), the groups inpractice-rows.md(Home 2) and the cards inpractice-situations.md(Home 3)filters.groupsinsrc/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.mdand 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
title: "Construction"weight: 1description: "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
title: "Daniel Mercer"weight: 1name: "Daniel Mercer"firstName: "Daniel" # used in labels such as "Insights by Daniel"role: "Managing partner"office: "london" # an office file namepracticeAreas: # 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"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 theirpracticeAreasis 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
title: "London"weight: 1city: "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
title: "Paralegal"description: "..."order: 4 # list order, lower firstlocation: "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 setimage: "/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. Copysrc/content/practice-areas/english/employment.md to [slug].md in english, french and arabic, andrewrite its title, icon (a Lucide icon name), weight, description, image and text from thesenotes: [NOTES]. Add the slug to practiceGridNavy in practice-areas/<language>/-index.md, topractice-grid-navy.md in src/content/sections/<language>/, to the "Practice areas" mega menu inevery src/config/menu.<lang>.json and to the "Practice area" dropdown in the forms. Then runnpm run astro-check and npm run build.