Skip to content

Commit

Permalink
Fix project not building due to custom implementation of the SiteTitl…
Browse files Browse the repository at this point in the history
…e component
  • Loading branch information
louisescher committed May 1, 2024
1 parent 7ee4628 commit 5c18225
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/SiteTitle.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import config from 'virtual:starlight/user-config';
import type { Props } from '@astrojs/starlight/props';
import { formatPath } from './utils/format-path';
const { siteTitle } = Astro.props;
const href = formatPath(Astro.props.locale || '/');
---

Expand Down Expand Up @@ -34,7 +36,7 @@ const href = formatPath(Astro.props.locale || '/');
)
}
<span class:list={{ 'sr-only': config.logo?.replacesTitle }}>
{config.title.split(" ").map((titlePiece: string) => {
{siteTitle.split(" ").map((titlePiece: string) => {
return <span>{titlePiece}</span>
})}
</span>
Expand Down

0 comments on commit 5c18225

Please sign in to comment.