Skip to content

Commit

Permalink
docs: deprecated Astro.props.slugAstro.props.entry.slug
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-deramond committed Dec 14, 2024
1 parent e924212 commit dc79b61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/content/docs/guides/overriding-components.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ In the following example, a component overriding Starlight's [`Footer`](/referen
import type { Props } from '@astrojs/starlight/props';
import Default from '@astrojs/starlight/components/Footer.astro';
const isHomepage = Astro.props.slug === '';
const isHomepage = Astro.props.entry.slug === '';
---
{
Expand Down

0 comments on commit dc79b61

Please sign in to comment.