summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordelucis2023-10-06 16:54:35 +0000
committerfredkbot2023-10-06 16:54:35 +0000
commit2736132477f6d1e28b8070e15d558eac3c0e3ffb (patch)
tree909c38653b5fc215423b73cfb43ab87b78d3456e
parent140e729a8bf12f805ae0b7e2b5ad959cf68d8e22 (diff)
downloadIT.starlight-2736132477f6d1e28b8070e15d558eac3c0e3ffb.tar.gz
IT.starlight-2736132477f6d1e28b8070e15d558eac3c0e3ffb.tar.bz2
IT.starlight-2736132477f6d1e28b8070e15d558eac3c0e3ffb.zip
[ci] format
-rw-r--r--docs/src/content/docs/guides/overriding-components.md2
-rw-r--r--packages/starlight/components/Sidebar.astro2
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;
<SidebarSublist sublist={sidebar} />
<div class="md:sl-hidden">
- <MobileMenuFooter {...Astro.props} />
+ <MobileMenuFooter {...Astro.props} />
</div>