Site Identity & Logo
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
[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"| Key | What it does |
|---|---|
title | The short site name, used in social previews and the structured data |
description | The default description for search results, for pages that don’t have their own |
tagline | Added after every page title in the default language: “Fees - Your tagline” |
taglineSeparator | The text between page title and tagline. Empty uses " - " |
logoText | The 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
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.
-
Put your logo files in
src/assets/images/, replacinglogo.svg(for light backgrounds) andlogo-light.svg(for dark ones). SVG gives the sharpest result. -
Check the paths in
[site]:logo = "/images/logo.svg"andlogoLight = "/images/logo-light.svg". They point intosrc/assets/images/. -
Add
useImagewhere the logo is used. The header is insrc/layouts/components/global/header/Header.astro(<Logo class="header-logo" />), and the mobile menu insrc/layouts/components/widgets/HeaderOffcanvasContent.astro. For example<Logo class="header-logo" useImage />. -
The footers are in
src/layouts/components/global/footer/. Themarqueeandofficesfooters are navy, so pass the white file there:<Logo tone="light" size="lg" useImage src="/images/logo-light.svg" />. Thecolumns-lightfooter is white and takes the normal file. -
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/.
-
Put a square image of your mark (512 by 512 pixels or larger, PNG or SVG) in
src/assets/images/, for example asfavicon.png. -
Point
[site.favicon] imageat it. The path is written fromsrc/assets, sosrc/assets/images/favicon.pngis"/images/favicon.png". Leavepathas it is. -
Run the generator:
Terminal window npm run generate-favicons -
The generator writes
public/images/favicons/favicon.svgas a wrapper around a PNG. To keep a sharp SVG favicon that turns white in dark browser tabs, copy your ownsrc/assets/images/favicon.svgover 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 andcommon.siteDescription in every file in src/i18n/ to the same text, translated for fr.json and ar.json. Then replace the <path> insrc/layouts/components/global/Logo.astro with this SVG path, keeping fill="currentColor": [PATH].