# Config Reference (config.toml)

## 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.

<Aside type="note">
  Restart `npm run dev` after you change `baseUrl`, `trailingSlash`, or
  anything in `[settings.multilingual]`. Astro reads those only when it starts.
</Aside>

### Site Identity
Table: `[site]`

| Key                | What it does                                                                                    |
| ------------------ | ----------------------------------------------------------------------------------------------- |
| `title`            | Site name ("Covena"). Used in social previews and the structured data, and as the logo label when `logoText` is empty |
| `description`      | Default description for search results and social previews                                     |
| `tagline`          | Added to page titles in the default language: "Fees - your tagline". Other languages use `common.tagline` in `src/i18n/<lang>.json` |
| `taglineSeparator` | Text between the page title and the tagline. Empty uses `" - "`                                 |
| `baseUrl`          | Your 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 |
| `logo`             | The navy logo file, used in the structured data and when you switch to an image logo          |
| `logoLight`        | The white logo file, for dark surfaces                                                          |
| `logoText`         | The name shown next to the logo mark ("Covena")                                                 |
| `trailingSlash`    | `true` makes every URL end with `/` (`/fees/`). Restart the dev server after changing it      |
| `[site.favicon] image` | Source image for `npm run generate-favicons`. Leave `path` as it is                         |

Details: [Site Identity & Logo](/covena/customization/site-identity-logo/).

### Search Engines And AI
Tables: `[seo]`, `[seo.ai]`, `[seo.robotsTxt]`, `[seo.sitemap]`

| Key                              | What it does                                                                                 |
| -------------------------------- | -------------------------------------------------------------------------------------------- |
| `author`                         | The firm name ("Covena Law"). Used as the meta author and as the firm's name in the structured data |
| `keywords`                       | Default keywords for pages without their own `keywords`                                      |
| `robots`                         | Default robots meta tag (`"index, follow"`)                                                  |
| `[seo.ai] llmsTxt`               | Builds `/llms.txt` and `/llms-full.txt` in each language                                     |
| `[seo.ai] markdownPages`         | Builds a Markdown copy of each insight, practice area, industry, result, role, attorney profile, FAQ, and legal page at `<page>.md` |
| `[seo.robotsTxt] enable`         | Builds `/robots.txt`                                                                         |
| `[seo.robotsTxt] disallow`       | Paths crawlers should skip, for example `["/drafts/"]`                                       |
| `[seo.robotsTxt] aiSearch`       | `false` asks AI search and answer engines not to read the site                               |
| `[seo.robotsTxt] aiTraining`     | `false` asks AI training crawlers not to read the site                                       |
| `[seo.sitemap] enable`           | Builds the sitemap                                                                           |
| `[seo.sitemap] exclude`          | Folder names to leave out of the sitemap                                                     |

Details: [SEO & AI Visibility](/covena/customization/seo-ai-visibility/) and [AI Links & llms](/covena/features/ai-links-llms/).

### Motion
Table: `[effects]`

| Key            | What it does                                                                                     |
| -------------- | ------------------------------------------------------------------------------------------------ |
| `motion`       | `true` 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 |
| `smoothScroll` | `true` loads Lenis smooth scrolling. Ships `false`, because it takes over the browser's own scrolling |

Details: [Animations](/covena/customization/animations/) and [Smooth Scroll](/covena/features/smooth-scroll/).

### General Settings
Table: `[settings]`

| Key                   | What it does                                                                                  |
| --------------------- | --------------------------------------------------------------------------------------------- |
| `blogFolder`          | Folder 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` |
| `careersFolder`       | Same, for the careers roles (`"careers"`)                                                     |
| `pagination`          | Posts per page on `/insights/` (after the featured post) and on its category and tag pages     |
| `stickyHeader`        | `true` brings the menu bar back when visitors scroll up and hides it when they scroll down. The strips above it always scroll away |
| `contactFormAction`   | Where 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](/covena/customization/forms/).

### Smaller Features
| Table                         | Keys                                                                 | What it does                                                    |
| ----------------------------- | -------------------------------------------------------------------- | --------------------------------------------------------------- |
| `[settings.animatedNumbers]`  | `enable`, `duration`                                                 | Count-up figures such as "1,800+". `duration` is in seconds      |
| `[settings.themeCredit]`      | `enable`, `url`                                                      | The theme credit in the footer and in `llms.txt`. Its sentence is `footer.themeCredit` in `src/i18n/<lang>.json` |
| `[settings.pageActions]`      | `enable`, `footer`, `providers`                                      | The **Ask AI** row in the footer. It shows when `enable` and `footer` are both `true` |
| `[settings.smoothScroll]`     | `respectReducedMotion`, `duration`, `easing`, `smoothWheel`, and more | Tuning for smooth scrolling. Switch it on with `[effects] smoothScroll` |
| `[settings.keyboardScroll]`   | `enable`, `duration`                                                 | Command + 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`, `followRatio` | The circle that follows the mouse. It turns itself off on touch screens |
| `[settings.copyright]`        | `enable`, `text`                                                     | The copyright line. Empty `text` uses `footer.copyright` in each language file |
| `[settings.subscription]`     | `enable`, `title`, `note`, `formAction`, `mailchimpTagValue`         | The newsletter form in the `columns-light` footer (Home 2). Empty `formAction` runs it in demo mode |
| `[settings.cookieConsent]`    | `enable`, `revision`                                                 | The cookie banner. Raise `revision` to ask every visitor again   |

Details: [Footer](/covena/customization/footer/) and [Cookies & Analytics](/covena/customization/cookies-analytics/).

### Languages
Table: `[settings.multilingual]`

| Key                    | What it does                                                                       |
| ---------------------- | ---------------------------------------------------------------------------------- |
| `enable`               | `false` turns off the language features. Then run `npm run remove-multilingual`   |
| `defaultLanguage`      | The language served without a prefix (`"en"`)                                      |
| `disableLanguages`     | Language codes to leave out of the build, for example `["ar"]`                     |
| `showDefaultLangInUrl` | `true` puts the default language in the URL too (`/en/fees/`)                     |

Restart `npm run dev` after any change here. Details: [Internationalization](/covena/customization/internationalization/).

### Firm Contact Details
Table: `[settings.contactInfo]`

| Key     | What it does                                                                                  |
| ------- | --------------------------------------------------------------------------------------------- |
| `phone` | The firm's main phone, as a Markdown link: `"[+44 20 7946 0321](tel:+442079460321)"`          |
| `email` | The firm's main email, as a Markdown link: `"[hello@example.com](mailto:hello@example.com)"`   |

The address is text in each language, in `src/i18n/<lang>.json` under `contactInfo`. Details: [Firm Info](/covena/customization/firm-info/).

### Header
Tables: `[settings.header]`, `[settings.quickExit]`, `[settings.navigationButton]`

| Key                                   | What it does                                                              |
| ------------------------------------- | ------------------------------------------------------------------------- |
| `[settings.header] showChips`         | The "Call us / Email us / Visit us" row in the `panel` header             |
| `[settings.header] showOfficeStrip`   | The strip with the office cities and phone above the `bar` header         |
| `[settings.header] showLanguageSwitcher` | The language menu in the header, from 1320 px wide                     |
| `[settings.quickExit] enable`         | The quick exit button (on by default)                                     |
| `[settings.quickExit] everyPage`      | `false` shows it only in the `transparent` header (Home 3). `true` shows it in every header and in the mobile menu |
| `[settings.quickExit] url`            | Where the button sends the visitor                                        |
| `[settings.quickExit] label`          | Empty uses `header.quickExit` in `src/i18n/<lang>.json`                   |
| `[settings.navigationButton] enable`  | The button at the end of the menu                                         |
| `[settings.navigationButton] label`   | Empty uses `navigation.buttonLabel` ("Free consultation")                 |
| `[settings.navigationButton] url`     | Where it goes (`/consultation/`)                                          |

Details: [Header](/covena/customization/header/) and [Quick Exit](/covena/features/quick-exit/).

### Social Previews
Table: `[opengraph]`

| Key           | What it does                                                          |
| ------------- | --------------------------------------------------------------------- |
| `image`       | The image shown when a page is shared (`/images/og-image.jpg`)        |
| `ogLocale`    | Locale for the default language (`en_US`). Other languages use `ogLocale` in `src/config/language.json` |
| `ogType`      | Open Graph type (`website`)                                           |
| `twitter`     | Your X handle, for the card tags                                      |
| `twitterCard` | Card 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](/covena/customization/cookies-analytics/).

### Do It With AI
```text
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.
```