@robinmordasiewicz/f5xc-docs-theme 1.7.0 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import Default from '@astrojs/starlight/components/PageTitle.astro';
|
|
3
3
|
|
|
4
4
|
const docsHome = process.env.DOCS_HOME || 'https://robinmordasiewicz.github.io/f5xc-docs/';
|
|
5
|
-
const { sidebar, entry } = Astro.locals.starlightRoute;
|
|
5
|
+
const { sidebar, entry, siteTitle } = Astro.locals.starlightRoute;
|
|
6
6
|
|
|
7
7
|
function findTrail(entries: typeof sidebar, trail: { label: string }[] = []): { label: string }[] | null {
|
|
8
8
|
for (const item of entries) {
|
|
@@ -23,6 +23,7 @@ const trail = findTrail(sidebar) || [];
|
|
|
23
23
|
<nav class="breadcrumbs" aria-label="Breadcrumb">
|
|
24
24
|
<ol>
|
|
25
25
|
<li><a href={docsHome}>Home</a></li>
|
|
26
|
+
<li><a href={import.meta.env.BASE_URL}>{siteTitle}</a></li>
|
|
26
27
|
{trail.map((crumb) => (
|
|
27
28
|
<li><span>{crumb.label}</span></li>
|
|
28
29
|
))}
|