From 2736132477f6d1e28b8070e15d558eac3c0e3ffb Mon Sep 17 00:00:00 2001 From: delucis Date: Fri, 6 Oct 2023 16:54:35 +0000 Subject: [ci] format --- docs/src/content/docs/guides/overriding-components.md | 2 +- packages/starlight/components/Sidebar.astro | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/content/docs/guides/overriding-components.md b/docs/src/content/docs/guides/overriding-components.md index 71ea7e1d..6436829d 100644 --- a/docs/src/content/docs/guides/overriding-components.md +++ b/docs/src/content/docs/guides/overriding-components.md @@ -106,7 +106,7 @@ Learn more about all the available props in the [Overrides Reference](/reference ### Only override on specific pages -Component overrides apply to all pages. However, you can conditionally render using values from `Astro.props` to determine when to show your custom UI, when to show Starlight’s default UI, or even when to show something entirely different. +Component overrides apply to all pages. However, you can conditionally render using values from `Astro.props` to determine when to show your custom UI, when to show Starlight’s default UI, or even when to show something entirely different. In the following example, a component overriding Starlight's [`Footer`](/reference/overrides/#footer-1) displays "Built with Starlight 🌟" on the homepage only, and otherwise shows the default footer on all other pages: diff --git a/packages/starlight/components/Sidebar.astro b/packages/starlight/components/Sidebar.astro index 00374ee0..38dc898d 100644 --- a/packages/starlight/components/Sidebar.astro +++ b/packages/starlight/components/Sidebar.astro @@ -9,5 +9,5 @@ const { sidebar } = Astro.props;
- +
-- cgit