<PageSidebar>
The <PageSidebar>
component is an override of Starlight’s
<PageSidebar>
component, which contains both a <PageGraph>
and a <PageBacklinks>
component.
The sidebar itself does not handle any logic, if you want to hide either of the components,
there are several different ways to do so.
For more information, check out
either the <PageGraph>
or
<PageBacklinks>
documentation.
Usage
Overriding
If you want to extend the <PageSidebar>
component for your own website, while keeping the graph and backlinks
components, you can do so by creating your own override as follows:
- Create your own
PageSidebar.astro
component in thesrc/overrides
directory (orsrc/components
if you prefer). - Add the override to your
astro.config.mjs
file.