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

Files: src/config/config.toml, src/layouts/components/global/Logo.astro, src/assets/images/, public/images/ · Skill level: Beginner (light code for an image logo)

Your site’s identity is the name, the tagline added to page titles, the logo in the header and footers, the favicons in the browser tab, and the image shown when someone shares a page.

Name, Tagline, And Description

src/config/config.toml
[site]
title = "Covena"
description = "Covena is an Astro and Tailwind CSS theme for law firms and attorneys, ..."
tagline = "Law Firm & Attorney Astro & Tailwind CSS Theme"
taglineSeparator = ""
logoText = "Covena"
KeyWhat it does
titleThe short site name, used in social previews and the structured data
descriptionThe default description for search results, for pages that don’t have their own
taglineAdded after every page title in the default language: “Fees - Your tagline”
taglineSeparatorThe text between page title and tagline. Empty uses " - "
logoTextThe name shown next to the logo mark in the header, the mobile menu, and the footers

The shipped tagline and description describe the theme, not a firm. Write your own before launch, for example a tagline like “Solicitors in Leeds and York”.

Other languages don’t use tagline from this file. They use common.tagline in src/i18n/fr.json and src/i18n/ar.json. Keep common.tagline in en.json the same as the config value. The site description is read from common.siteDescription in each language file, en.json included, and falls back to [site] description only when that key is missing. Change both.

One page without the tagline: add disableTagline: true to its frontmatter. The full list of page fields is in src/content/_file_format.md.

The logo is a “C” mark drawn in code, followed by logoText as live text. Because the mark is drawn inline, it takes the colour of the text around it: navy on the cream header, white on the navy footers and over the Home 3 hero photo. You get this without any setting.

Change only the name: set logoText in [site]. The mark stays.

Change the mark to your own shape: open src/layouts/components/global/Logo.astro and replace the d="..." value of the <path> with your own SVG path. Keep fill="currentColor", so it still changes colour on dark surfaces. The mark is drawn in a 32 by 32 box (viewBox="0 0 32 32").

Use an image logo instead: if your logo is a file (for example a wordmark with the name in it), switch the Logo component to image mode.

  1. Put your logo files in src/assets/images/, replacing logo.svg (for light backgrounds) and logo-light.svg (for dark ones). SVG gives the sharpest result.

  2. Check the paths in [site]: logo = "/images/logo.svg" and logoLight = "/images/logo-light.svg". They point into src/assets/images/.

  3. Add useImage where the logo is used. The header is in src/layouts/components/global/header/Header.astro (<Logo class="header-logo" />), and the mobile menu in src/layouts/components/widgets/HeaderOffcanvasContent.astro. For example <Logo class="header-logo" useImage />.

  4. The footers are in src/layouts/components/global/footer/. The marquee and offices footers are navy, so pass the white file there: <Logo tone="light" size="lg" useImage src="/images/logo-light.svg" />. The columns-light footer is white and takes the normal file.

  5. If your image already contains the name, set logoText = "" so it doesn’t show twice.

Favicons

Favicons are the small icons in the browser tab and on phone home screens. The generated set is in public/images/favicons/.

  1. Put a square image of your mark (512 by 512 pixels or larger, PNG or SVG) in src/assets/images/, for example as favicon.png.

  2. Point [site.favicon] image at it. The path is written from src/assets, so src/assets/images/favicon.png is "/images/favicon.png". Leave path as it is.

  3. Run the generator:

    Terminal window
    npm run generate-favicons
  4. The generator writes public/images/favicons/favicon.svg as a wrapper around a PNG. To keep a sharp SVG favicon that turns white in dark browser tabs, copy your own src/assets/images/favicon.svg over it afterwards.

The Social Share Image

When someone shares a page on LinkedIn, X, WhatsApp, or Slack, the preview shows the image set in [opengraph] image:

[opengraph]
image = "/images/og-image.jpg"

The shipped file is public/images/og-image.jpg, 1200 by 630 pixels, with the Covena name on it. Replace it with your own image at the same size. A page can show its own image instead: an insight post or attorney profile uses its image field.

The preview needs a full address, so the image tags are only written once [site] baseUrl is set. See SEO & AI Visibility.

Do It With AI

Rebrand the site to "[FIRM NAME]". In src/config/config.toml set [site] title and logoText to
"[SHORT NAME]", tagline to "[TAGLINE]" and description to "[ONE SENTENCE]". Set common.tagline and
common.siteDescription in every file in src/i18n/ to the same text, translated for fr.json and ar.json. Then replace the <path> in
src/layouts/components/global/Logo.astro with this SVG path, keeping fill="currentColor": [PATH].
Type something to search...