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 · Skill level: Beginner

Techbyte exposes its branding settings through src/config/config.toml, and the shared logo rendering logic lives in src/layouts/components/global/Logo.astro.

In the Tina edition, these settings are under Site settings at /admin/. In the Sanity edition, they are in the Studio under Site settings > Site, and a value there wins over the same value in config.toml.

To set the logo used across the theme, edit the [site] section in config.toml:

src/config/config.toml
[site]
title = "Techbyte"
description = ""
tagline = ""
taglineSeparator = ""
baseUrl = "https://example.com"
logo = "/images/logo.png"
logoAlternate = "/images/logo-white.png"
logoText = ""
logoWidth = "170px"
logoHeight = "34px"
  • title: The site name.
  • description: The default meta description. Leave it empty to use common.siteDescription in src/i18n/<lang>.json, one per language. A value here shows on every language.
  • tagline: Added to page titles. Leave it empty to use common.tagline in src/i18n/<lang>.json, one per language. A value here shows on every language. taglineSeparator goes between the title and the tagline, and the default is -.
  • baseUrl: Your site’s address. Canonical links, the sitemap, robots.txt, llms.txt, and social previews use it. It ships as https://example.com, and npm run build warns while it is still that. A SITE_URL environment variable overrides baseUrl for a build.
  • logo: The logo in both headers, the side menu, and the small-screen menu panel. A path such as /images/logo.png points to src/assets/images/logo.png.
  • logoAlternate: The light logo in both footers.
  • logoText: Optional text rendered next to the logo (supports inline Markdown). Techbyte ships with an image-only logo, so this is empty by default.
  • logoWidth & logoHeight: Control the rendered logo dimensions.

The logo key under [settings.headerOffcanvas] isn’t used. The panel shows the [site] logo.

If you want a fully custom logo in a specific place, you can pass a manual src prop (plus width and height) to Logo.astro. SVG logos are inlined automatically for crisp rendering.

Set Up Your Favicon

Favicons are configured in the same file:

src/config/config.toml
[site.favicon]
path = "/images/favicons"
image = "/images/favicon.png"

Generate Favicons

  1. Put your source logo in the location referenced by image. /images/favicon.png is src/assets/images/favicon.png.

  2. Run:

    Terminal window
    npm run generate-favicons
  3. Techbyte will generate favicon assets for multiple platforms into public/images/favicons/. You can verify the output with RealFaviconGenerator’s checker.

Customize SEO Metadata

Techbyte also exposes basic SEO settings in config.toml:

src/config/config.toml
[seo]
author = "Getastrothemes"
keywords = ["it solutions astro theme", "managed it services website template"]
robots = "index, follow"
[seo.robotsTxt]
enable = true
disallow = []
aiSearch = true
aiTraining = true
[seo.ai]
llmsTxt = true
markdownPages = true
[seo.sitemap]
enable = true
exclude = []
  • author: Author or company name used in metadata.
  • keywords: Search keywords for the default language. Other languages print none.
  • robots: Crawl/indexing rules for search engines.
  • [seo.robotsTxt] and [seo.ai]: robots.txt, its AI crawler switches, and the AI-readable files. See AI Links & llms.
  • [seo.sitemap]: Turns the sitemap on or off, and leaves out pages whose address includes the folder names in exclude.

Next, update the theme colors and font stack so the brand feels like yours.

Do It With AI

Change the logo to [FILE] and the site name to [NAME]. Put the file in src/assets/images/. In
src/config/config.toml, update title, description, baseUrl, logo, logoAlternate, logoWidth, and
logoHeight under [site]. Don't change any other key. Then run npm run astro-check.
Type something to search...