From dc79b616592d216d4e54c48238a09357e881b922 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20D=C3=A9ramond?= Date: Sat, 14 Dec 2024 08:48:20 +0100 Subject: [PATCH 1/2] =?UTF-8?q?docs:=20deprecated=20`Astro.props.slug`=20?= =?UTF-8?q?=E2=86=92=20`Astro.props.entry.slug`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/src/content/docs/guides/overriding-components.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/content/docs/guides/overriding-components.mdx b/docs/src/content/docs/guides/overriding-components.mdx index edac98b2f1e..3926198bc01 100644 --- a/docs/src/content/docs/guides/overriding-components.mdx +++ b/docs/src/content/docs/guides/overriding-components.mdx @@ -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 === ''; --- { From 783c5602eaac94ac43f21e45fbdc67f05fe6a245 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20D=C3=A9ramond?= Date: Sat, 14 Dec 2024 12:31:23 +0100 Subject: [PATCH 2/2] Update docs/src/content/docs/guides/overriding-components.mdx Co-authored-by: HiDeoo <494699+HiDeoo@users.noreply.github.com> --- docs/src/content/docs/guides/overriding-components.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/content/docs/guides/overriding-components.mdx b/docs/src/content/docs/guides/overriding-components.mdx index 3926198bc01..dc465589a53 100644 --- a/docs/src/content/docs/guides/overriding-components.mdx +++ b/docs/src/content/docs/guides/overriding-components.mdx @@ -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.entry.slug === ''; +const isHomepage = Astro.props.id === ''; --- {