---
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';
const { siteTitle } = Astro.props;
const href = formatPath(Astro.props.locale || '/');
---
{
config.logo && logos.dark && (
<>
{/* Show light alternate if a user configure both light and dark logos. */}
{!('src' in config.logo) && (
)}
>
)
}
{siteTitle}