aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/components/starlight/PageTitle.astro
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/starlight/PageTitle.astro')
-rw-r--r--src/components/starlight/PageTitle.astro24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/components/starlight/PageTitle.astro b/src/components/starlight/PageTitle.astro
new file mode 100644
index 0000000..352e1c3
--- /dev/null
+++ b/src/components/starlight/PageTitle.astro
@@ -0,0 +1,24 @@
+---
+import Breadcrumbs from './Breadcrumbs.astro';
+---
+
+{Astro.url.pathname !== "/" && (
+ <>
+ <div id="_top">
+ <Breadcrumbs />
+ </div>
+ <h1>{Astro.locals.starlightRoute.entry.data.title}</h1>
+ </>
+)}
+
+<style>
+ @layer starlight.core {
+ 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);
+ }
+ }
+</style>