-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add breadcrumbs, update structure & update dependencies
- Loading branch information
Showing
49 changed files
with
353 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
import Default from "@astrojs/starlight/components/PageTitle.astro"; | ||
import type { Props } from '@astrojs/starlight/props'; | ||
import { Breadcrumbs } from "astro-breadcrumbs"; | ||
import "astro-breadcrumbs/breadcrumbs.css"; | ||
const hideTitle = Astro.props.hideTitle; | ||
--- | ||
|
||
<Breadcrumbs linkTextFormat="sentence"> | ||
<svg | ||
slot="separator" | ||
xmlns="http://www.w3.org/2000/svg" | ||
width="24" | ||
height="24" | ||
viewBox="0 0 24 24" | ||
fill="none" | ||
stroke="currentColor" | ||
stroke-width="2" | ||
stroke-linecap="round" | ||
stroke-linejoin="round" | ||
><polyline points="9 18 15 12 9 6"></polyline> | ||
</svg> | ||
</Breadcrumbs> | ||
|
||
{!hideTitle && <Default {...Astro.props} />} | ||
|
||
<style> | ||
h1 { | ||
margin-top: 1rem; | ||
font-size: var(--sl-text-h1); | ||
line-height: var(--sl-line-height-headings); | ||
font-weight: 600; | ||
color: var(--sl-color-white); | ||
} | ||
|
||
:root { | ||
--color-link-breadcrumbs: var(--sl-color-text-accent); | ||
} | ||
</style> |
Oops, something went wrong.