From 84d2871229f890370e1fd368228878858b519b95 Mon Sep 17 00:00:00 2001 From: Kevin Zuniga Cuellar Date: Mon, 6 Nov 2023 12:03:14 -0800 Subject: [PATCH] forward project config to SiteTitle --- packages/starlight/components/SiteTitle.astro | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/starlight/components/SiteTitle.astro b/packages/starlight/components/SiteTitle.astro index 4037b6e0215..7a64add8ba4 100644 --- a/packages/starlight/components/SiteTitle.astro +++ b/packages/starlight/components/SiteTitle.astro @@ -3,8 +3,11 @@ import { logos } from 'virtual:starlight/user-images'; import config from 'virtual:starlight/user-config'; import type { Props } from '../props'; import { formatPath } from '../utils/format-path'; +import project from 'virtual:starlight/project-context'; -const href = formatPath(Astro.props.locale || '/'); +const href = formatPath(Astro.props.locale || '/', { + format: project.build.format, +}); ---