feat: add page layout

This commit is contained in:
Stefan Imhoff
2023-04-04 17:40:51 +02:00
parent 208b9d9418
commit 67f42cf8f9
2 changed files with 12 additions and 1 deletions

View File

@@ -51,7 +51,7 @@ const { title, backLink } = Astro.props;
<ThemeProvider />
</head>
<body
class="flex h-screen flex-col bg-shibui-100 font-sans font-normal leading-relaxed text-shibui-950 dark:bg-shibui-900 dark:text-shibui-200/[0.87]"
class="flex h-screen flex-col bg-shibui-100 font-sans font-normal leading-relaxed text-shibui-950 common-ligatures discretionary-ligatures dark:bg-shibui-900 dark:text-shibui-200/[0.87]"
>
<Sprite.Provider>
<PageHeader backLink={backLink} />

View File

@@ -0,0 +1,11 @@
---
import BaseLayout from '../layouts/BaseLayout.astro';
import { Title } from '../components/Title';
const { frontmatter } = Astro.props;
---
<BaseLayout title={frontmatter.title}>
<Title>{frontmatter.title}</Title>
<slot />
</BaseLayout>