From 21008d733f896a8b960f4407f320720201e5f6ff Mon Sep 17 00:00:00 2001 From: Jay V Date: Wed, 3 Sep 2025 17:12:51 -0700 Subject: docs: link --- packages/web/src/components/SiteTitle.astro | 59 +++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 packages/web/src/components/SiteTitle.astro (limited to 'packages/web/src/components') diff --git a/packages/web/src/components/SiteTitle.astro b/packages/web/src/components/SiteTitle.astro new file mode 100644 index 000000000..28a30cb23 --- /dev/null +++ b/packages/web/src/components/SiteTitle.astro @@ -0,0 +1,59 @@ +--- +import { logos } from 'virtual:starlight/user-images'; +import config from 'virtual:starlight/user-config'; +const { siteTitle, siteTitleHref } = Astro.locals.starlightRoute; +--- + + + { + config.logo && logos.dark && ( + <> + {config.logo.alt} + {/* Show light alternate if a user configure both light and dark logos. */} + {!('src' in config.logo) && ( + {config.logo.alt} + )} + + ) + } + + {siteTitle} + + + + -- cgit v1.2.3