diff options
| author | Jay V <[email protected]> | 2025-05-21 14:24:53 -0400 |
|---|---|---|
| committer | Jay V <[email protected]> | 2025-05-21 14:24:53 -0400 |
| commit | 6cfcf51752ec8d40104cead0b2602885c77a9c79 (patch) | |
| tree | f34e8adf2b613c6d55e2b833212b04635b138156 /www/src/components/Hero.astro | |
| parent | 5f5f9dad877300bab3fe5442ea141551ba89421b (diff) | |
| download | opencode-6cfcf51752ec8d40104cead0b2602885c77a9c79.tar.gz opencode-6cfcf51752ec8d40104cead0b2602885c77a9c79.zip | |
adding docs site
Diffstat (limited to 'www/src/components/Hero.astro')
| -rw-r--r-- | www/src/components/Hero.astro | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/www/src/components/Hero.astro b/www/src/components/Hero.astro new file mode 100644 index 000000000..f80f85266 --- /dev/null +++ b/www/src/components/Hero.astro @@ -0,0 +1,11 @@ +--- +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> +} |
