Download packages/web/src/components/Hero.astro from SaylorTwift/opencode: direct link, hf CLI and curl.
- Browser
- Download file 260 Bytes
-
https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/web/src/components/Hero.astro
- Command line
-
hf download hf://SaylorTwift/opencode/packages/web/src/components/Hero.astro
-
curl -L -o Hero.astro https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/web/src/components/Hero.astro
260 Bytes
| 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> | |
| } | |