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

Upstart makes it easy to customize your site’s branding, including the logo and favicon, through the config.toml file.

In the Tina edition, you edit these settings in Site settings at /admin/. In the Sanity edition, they are in Site settings in the Studio, under Site, SEO, and Opengraph. The favicon settings stay in config.toml in every edition.

To set your logo that will be displayed on the header and footer, edit the [site] section in the config.toml file:

src/config/config.toml
[site]
title = "Upstart" # Shared title for SEO and OpenGraph
description = "A highly customizable saas & startup astro theme built with Tailwind CSS and Astro Js" # Shared description for SEO and OpenGraph
tagline = "Saas & Startup Astro Js Theme" # Appended to page titles unless disabled
taglineSeparator = "" # default is " - "
baseUrl = "https://upstart-astro.pages.dev" # Base URL for the site and used in OpenGraph meta tags
logo = "/images/logo.svg" # Path to the site's logo
logoHoverAnimation = true # Enable or disable logo hover animation
logoText = "Upstart" # Text displayed next to the logo
logoWidth = "32px" # Width of the logo
logoHeight = "32px" # Height of the logo
trailingSlash = true # Add a trailing slash at the end of URLs. Restart your server when you change it
  • title: shared name used for SEO, Open Graph, and as the fallback brand when no logo image or logoText is set.
  • description and tagline: shared meta description and the tagline appended to page titles. taglineSeparator goes between the page title and the tagline. In other languages, common.siteTagline and common.siteDescription in src/i18n/<lang>.json replace them.
  • baseUrl: your site’s address. Canonical links, the sitemap, robots.txt, llms.txt, and Open Graph URLs use it. It ships with the theme demo’s address, and the build warns only about a placeholder such as example.com, not about that address, so set it to your domain. A SITE_URL environment variable overrides baseUrl for a build.
  • logo: Path to your main logo image.
  • logoHoverAnimation: toggles the logo hover animation in the header. Set to false to disable it.
  • logoText: text rendered next to the logo. If you leave both logo and logoText empty, Upstart falls back to the site title.
  • logoWidth & logoHeight: rendered dimensions of the logo image.
  • trailingSlash: adds a trailing slash at the end of URLs, such as /contact/.

If you want to use a different logo for footer, add your image to src/assets/images/. Then locate the <Logo /> component in src/layouts/components/global/Footer.astro file and update it as illustrated below, using your own file name. The theme doesn’t ship a logo-white.svg.

src/layouts/components/global/Footer.astro
<!-- Logo, Description and Social -->
<div class="flex flex-col gap-y-5 lg:pe-10">
<Logo />
<Logo src="/images/logo-white.svg" />
{
footerDescription && (
<p class="opacity-90" set:html={markdownify(footerDescription)} />
)
}
<SocialComponent
layout="classic"
linkType="follow"
class="mt-5 gap-1"
size="sm"
list={social.main.filter((social) => social.enable)}
/>
</div>

The <Logo /> component accepts an optional src prop, so passing a different image path swaps the logo used in the footer only.

Set Up Your Favicon

Favicons appear in browser tabs and are essential for branding.

src/config/config.toml
[site.favicon]
path = "/images/favicons" # Favicon storage path (no need to change it)
image = "/images/logo.svg" # Use your logo here

Generate Favicons

  1. Place your logo image in src/assets/images/, and set image to its path. A path such as /images/logo.svg points to that folder.

  2. Run this command in your terminal:

    Terminal window
    npm run generate-favicons
  3. The tool will create favicons for various platforms and save them to public/images/favicons/.

Customize SEO Metadata

Optimize your site for search engines with these SEO settings in config.toml:

src/config/config.toml
[seo]
author = "Getastrothemes" # Author name for SEO
keywords = [
"saas astro theme",
"saas business astro theme",
"startup astro theme",
] # SEO keywords
robots = "index, follow" # Search engine crawl rules
  • author: Set the author or organization for SEO.
  • keywords: Add keywords to improve search ranking.
  • robots: Control search engine crawling (e.g., “index, follow” to allow indexing).

The same section holds [seo.robotsTxt], [seo.ai], and [seo.sitemap]. For the crawler switches and the llms files, see AI Links & llms. The image for social previews is image in [opengraph].

🚀 You’ve customized the site’s identity and logo—now it’s time to update the fonts and colors!

Type something to search...