Files
opencode/packages/web/src/components/Hero.astro
Dax Raad f3da73553c sync
2025-05-30 20:48:36 -04:00

12 lines
260 B
Plaintext

---
import Default from '@astrojs/starlight/components/Hero.astro';
import Lander from './Lander.astro';
const { slug } = Astro.locals.starlightRoute.entry;
---
{ slug === ""
? <Lander {...Astro.props} />
: <Default {...Astro.props}><slot /></Default>
}