mirror of
https://github.com/kogakure/website-astro-stefanimhoff.de.git
synced 2026-02-03 12:05:28 +00:00
feat: add page layout
This commit is contained in:
@@ -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} />
|
||||
11
src/layouts/PageLayout.astro
Normal file
11
src/layouts/PageLayout.astro
Normal 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>
|
||||
Reference in New Issue
Block a user