Site Identity & Logo
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.
Customize Your Logo
To set your logo that will be displayed on the header and footer, edit the [site] section in the config.toml file:
[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 ittitle: shared name used for SEO, Open Graph, and as the fallback brand when no logo image orlogoTextis set.descriptionandtagline: shared meta description and the tagline appended to page titles.taglineSeparatorgoes between the page title and the tagline. In other languages,common.siteTaglineandcommon.siteDescriptioninsrc/i18n/<lang>.jsonreplace 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 asexample.com, not about that address, so set it to your domain. ASITE_URLenvironment variable overridesbaseUrlfor a build.logo: Path to your main logo image.logoHoverAnimation: toggles the logo hover animation in the header. Set tofalseto disable it.logoText: text rendered next to the logo. If you leave bothlogoandlogoTextempty, Upstart falls back to the sitetitle.logoWidth&logoHeight: rendered dimensions of the logo image.trailingSlash: adds a trailing slash at the end of URLs, such as/contact/.
Different Logo for Footer
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.
<!-- 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.
[site.favicon] path = "/images/favicons" # Favicon storage path (no need to change it) image = "/images/logo.svg" # Use your logo hereGenerate Favicons
-
Place your logo image in
src/assets/images/, and setimageto its path. A path such as/images/logo.svgpoints to that folder. -
Run this command in your terminal:
Terminal window npm run generate-favicons -
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:
[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!