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

Config Reference

File: src/config/config.toml · Skill level: Beginner

config.toml holds the site-wide settings. It is split into tables: a line in [brackets] starts a table, and every key = value line below it belongs to that table until the next one starts. Almost every key has a comment beside it in the file. This page explains them in one place.

The theme turns this file into .astro/config.generated.json by itself. Never edit that generated file, because your change is lost the next time it is written. If the TOML has a syntax error, the terminal shows the line.

Site Identity

Table: [site]

KeyWhat it does
titleSite name (“Covena”). Used in social previews and the structured data, and as the logo label when logoText is empty
descriptionDefault description for search results and social previews
taglineAdded to page titles in the default language: “Fees - your tagline”. Other languages use common.tagline in src/i18n/<lang>.json
taglineSeparatorText between the page title and the tagline. Empty uses " - "
baseUrlYour live address, for example "https://www.yourfirm.co.uk". Ships empty, and npm run build warns until you set it. Canonical links, the sitemap, RSS, llms.txt, and Open Graph URLs use it. A SITE_URL environment variable overrides it for one build
logoThe navy logo file, used in the structured data and when you switch to an image logo
logoLightThe white logo file, for dark surfaces
logoTextThe name shown next to the logo mark (“Covena”)
trailingSlashtrue makes every URL end with / (/fees/). Restart the dev server after changing it
[site.favicon] imageSource image for npm run generate-favicons. Leave path as it is

Details: Site Identity & Logo.

Search Engines And AI

Tables: [seo], [seo.ai], [seo.robotsTxt], [seo.sitemap]

KeyWhat it does
authorThe firm name (“Covena Law”). Used as the meta author and as the firm’s name in the structured data
keywordsDefault keywords for pages without their own keywords
robotsDefault robots meta tag ("index, follow")
[seo.ai] llmsTxtBuilds /llms.txt and /llms-full.txt in each language
[seo.ai] markdownPagesBuilds a Markdown copy of each insight, practice area, industry, result, role, attorney profile, FAQ, and legal page at <page>.md
[seo.robotsTxt] enableBuilds /robots.txt
[seo.robotsTxt] disallowPaths crawlers should skip, for example ["/drafts/"]
[seo.robotsTxt] aiSearchfalse asks AI search and answer engines not to read the site
[seo.robotsTxt] aiTrainingfalse asks AI training crawlers not to read the site
[seo.sitemap] enableBuilds the sitemap
[seo.sitemap] excludeFolder names to leave out of the sitemap

Details: SEO & AI Visibility and AI Links & llms.

Motion

Table: [effects]

KeyWhat it does
motiontrue runs the scroll motion (heading reveals, image wipes, pinned steps, stacked cards, marquee speed). false loads no motion script, and every section renders as plain markup
smoothScrolltrue loads Lenis smooth scrolling. Ships false, because it takes over the browser’s own scrolling

Details: Animations and Smooth Scroll.

General Settings

Table: [settings]

KeyWhat it does
blogFolderFolder of the insights posts ("blog"). They are published under /insights/. Changing it also means renaming the content folder and the collection in src/content.config.ts
careersFolderSame, for the careers roles ("careers")
paginationPosts per page on /insights/ (after the featured post) and on its category and tag pages
stickyHeadertrue brings the menu bar back when visitors scroll up and hides it when they scroll down. The strips above it always scroll away
contactFormActionWhere the contact, consultation, callback, and job application forms send. Empty runs them in demo mode, so nothing is sent
contactFormProvider"formsubmit.co" (the default), "formspree", or "netlify"

Details: Forms.

Smaller Features

TableKeysWhat it does
[settings.animatedNumbers]enable, durationCount-up figures such as “1,800+”. duration is in seconds
[settings.themeCredit]enable, urlThe theme credit in the footer and in llms.txt. Its sentence is footer.themeCredit in src/i18n/<lang>.json
[settings.pageActions]enable, footer, providersThe Ask AI row in the footer. It shows when enable and footer are both true
[settings.smoothScroll]respectReducedMotion, duration, easing, smoothWheel, and moreTuning for smooth scrolling. Switch it on with [effects] smoothScroll
[settings.keyboardScroll]enable, durationCommand + Arrow on macOS, or Ctrl + Home and End on Windows, glide to the top or bottom of the page. Works only while smooth scroll runs ([effects] smoothScroll = true)
[settings.cursor]enable, size, hoverSize, opacity, borderWidth, followRatioThe circle that follows the mouse. It turns itself off on touch screens
[settings.copyright]enable, textThe copyright line. Empty text uses footer.copyright in each language file
[settings.subscription]enable, title, note, formAction, mailchimpTagValueThe newsletter form in the columns-light footer (Home 2). Empty formAction runs it in demo mode
[settings.cookieConsent]enable, revisionThe cookie banner. Raise revision to ask every visitor again

Details: Footer and Cookies & Analytics.

Languages

Table: [settings.multilingual]

KeyWhat it does
enablefalse turns off the language features. Then run npm run remove-multilingual
defaultLanguageThe language served without a prefix ("en")
disableLanguagesLanguage codes to leave out of the build, for example ["ar"]
showDefaultLangInUrltrue puts the default language in the URL too (/en/fees/)

Restart npm run dev after any change here. Details: Internationalization.

Firm Contact Details

Table: [settings.contactInfo]

KeyWhat it does
phoneThe firm’s main phone, as a Markdown link: "[+44 20 7946 0321](tel:+442079460321)"
emailThe firm’s main email, as a Markdown link: "[[email protected]](mailto:[email protected])"

The address is text in each language, in src/i18n/<lang>.json under contactInfo. Details: Firm Info.

Tables: [settings.header], [settings.quickExit], [settings.navigationButton]

KeyWhat it does
[settings.header] showChipsThe “Call us / Email us / Visit us” row in the panel header
[settings.header] showOfficeStripThe strip with the office cities and phone above the bar header
[settings.header] showLanguageSwitcherThe language menu in the header, from 1320 px wide
[settings.quickExit] enableThe quick exit button (on by default)
[settings.quickExit] everyPagefalse shows it only in the transparent header (Home 3). true shows it in every header and in the mobile menu
[settings.quickExit] urlWhere the button sends the visitor
[settings.quickExit] labelEmpty uses header.quickExit in src/i18n/<lang>.json
[settings.navigationButton] enableThe button at the end of the menu
[settings.navigationButton] labelEmpty uses navigation.buttonLabel (“Free consultation”)
[settings.navigationButton] urlWhere it goes (/consultation/)

Details: Header and Quick Exit.

Social Previews

Table: [opengraph]

KeyWhat it does
imageThe image shown when a page is shared (/images/og-image.jpg)
ogLocaleLocale for the default language (en_US). Other languages use ogLocale in src/config/language.json
ogTypeOpen Graph type (website)
twitterYour X handle, for the card tags
twitterCardCard type (summary_large_image)

Head Scripts

Table: [head]

content is HTML that goes into the <head> of every page, for analytics or verification tags. With the cookie banner on, write each tag as <script type="text/plain" data-consent="analytics"> so it runs only after the visitor accepts. The comment above [head] in the file shows the full pattern. Details: Cookies & Analytics.

Do It With AI

Update src/config/config.toml for my firm. Set [site] baseUrl to "[URL]", [seo] author to
"[FIRM NAME]", and [settings.contactInfo] phone and email to "[PHONE]" and "[EMAIL]", keeping the
Markdown link format "[label](tel:...)" and "[label](mailto:...)". Don't rename or remove any key.
Then run npm run build and tell me if it prints any warning.
Type something to search...