Skip to content

Commit a7cf57e

Browse files
docs: deprecated Astro.props.slugAstro.props.id (#2685)
Co-authored-by: HiDeoo <494699+HiDeoo@users.noreply.github.com>
1 parent 0e419cc commit a7cf57e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎docs/src/content/docs/guides/overriding-components.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ In the following example, a component overriding Starlight's [`Footer`](/referen
141141
import type { Props } from '@astrojs/starlight/props';
142142
import Default from '@astrojs/starlight/components/Footer.astro';
143143
144-
const isHomepage = Astro.props.slug === '';
144+
const isHomepage = Astro.props.id === '';
145145
---
146146
147147
{

0 commit comments

Comments
 (0)