Skip to content

Commit

Permalink
forward project config to SiteTitle
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Zuniga Cuellar committed Nov 6, 2023
1 parent a2de86b commit 84d2871
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/starlight/components/SiteTitle.astro
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
---

<a {href} class="site-title sl-flex">
Expand Down

0 comments on commit 84d2871

Please sign in to comment.