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

SEO & AI Visibility

Files: src/config/config.toml, src/i18n/<lang>.json, page frontmatter · Skill level: Beginner

Covena handles the technical SEO for you: page titles and descriptions, canonical links, language alternates, a sitemap, robots.txt, structured data for the firm and each attorney, social preview cards, an RSS feed per language, and files for AI assistants. Your part is to set your address and firm details, and to write good titles and descriptions.

First, Set Your Address

src/config/config.toml
[site]
baseUrl = "https://www.yourfirm.com"

baseUrl ships empty. Until you set it, npm run build prints a yellow [site] warning, the sitemap is skipped, and canonical links, RSS feeds, llms.txt, and Open Graph URLs point to the build host. A SITE_URL environment variable overrides baseUrl for one build. The included vercel.sh sets one on Vercel.

SettingWhereUsed for
title[site]The site name in titles and structured data. Ships as “Covena”
tagline[site]Added to the end of every page title in the default language
taglineSeparator[site]What goes between the page title and the tagline. Empty uses ” - ”
description[site]The fallback description for pages that have none
author[seo]The meta author and the firm name in structured data. Ships as “Covena Law”
keywords[seo]Keywords for the default language
common.tagline, common.siteDescriptionsrc/i18n/<lang>.jsonThe tagline and fallback description in the other languages

A page title reads <page title> - <tagline>. Write the tagline for your firm, for example “Family and business solicitors in Leeds”.

Titles And Descriptions

Each content file has a title and a description. Two optional fields override them for search engines only:

---
title: "Employment"
description: "Contracts, disciplinaries, dismissals and settlement agreements."
metaTitle: "Employment solicitors in London and Manchester"
metaDescription: "Advice for employers and employees on contracts, dismissals and settlement agreements. First 30-minute call free."
---

Other page fields, all listed in src/content/_file_format.md:

FieldWhat it does
imageThe image for social previews of this page
canonicalPoints search engines at another address as the main copy of this page
robotsFor example "noindex, follow" to keep the page out of search results
excludeFromSitemaptrue leaves the page out of the sitemap
disableTaglinetrue drops the tagline from this page’s title
drafttrue keeps the page out of the production build and the sitemap

Structured Data (JSON-LD)

Every page carries JSON-LD that search engines read:

  • Every page: a WebPage that is part of your WebSite, published by a LegalService named after [seo] author, with your logo and the profiles in src/config/social.json that have enable: true.
  • Attorney profiles (/attorneys/<name>/): a ProfilePage about a Person, with the name, role, email, phone, and languages from the attorney’s file, and worksFor set to your firm.
  • Translated pages: the other languages of the page are listed as alternates.

Social Preview Cards

[opengraph]
image = "/images/og-image.jpg"
ogLocale = "en_US"
ogType = "website"
twitter = "" # your X handle, for the Twitter Card tags
twitterCard = "summary_large_image"

Replace public/images/og-image.jpg with your own image (1200 × 630 px works on every network). A page with image in its frontmatter uses that image instead. The og:locale of each page follows ogLocale of its language in language.json.

Sitemap, Robots, And Hidden Pages

[seo]
robots = "index, follow"
[seo.sitemap]
enable = true
exclude = [] # leave out every page whose address contains one of these folder names
[seo.robotsTxt]
enable = true
disallow = []
aiSearch = true
aiTraining = true

The sitemap is built only when baseUrl (or SITE_URL) is set. Draft pages and pages with excludeFromSitemap: true are left out. The search page at /search/ is noindex.

RSS

Each language has a feed of its insights: /insights/rss.xml, /fr/insights/rss.xml, and /ar/insights/rss.xml. Pages link to the feed in their head, so feed readers find it. If you set draft: true in src/content/blog/<language>/-index.md, the feed and its link are left out too.

AI Search And AI Assistants

[seo.ai]
llmsTxt = true # /llms.txt and /llms-full.txt, one per language
markdownPages = true # a Markdown copy of each detail and legal page at <page>.md

aiSearch and aiTraining under [seo.robotsTxt] ask AI answer engines and AI training crawlers to read the site or stay away. Write your own site summary in ai.siteSummary in each src/i18n/<lang>.json, because it opens llms.txt. The full guide is AI Links & llms.

Checks Before Launch

  • baseUrl is your domain and npm run build prints no [site] warning.
  • [seo] author, [site] tagline, and common.tagline in every language describe your firm.
  • Every practice area, attorney, and office page has a description you wrote.
  • public/images/og-image.jpg is yours.
  • src/config/social.json lists your own profiles, or sets enable: false.

Do It With AI

Prepare the SEO settings of this Covena site for launch. In src/config/config.toml set
[site] baseUrl to "[MY URL]", [site] tagline to "[TAGLINE]" and [seo] author to "[FIRM NAME]".
Set common.tagline in every src/i18n/<lang>.json file to the same tagline in that language.
Then list every file in src/content/practice-areas/english/ that has no metaDescription,
and suggest one under 155 characters for each, based on the page text. Don't change anything else.
Type something to search...