diff options
Diffstat (limited to 'src/layouts')
-rw-r--r-- | src/layouts/BaseLayout.astro | 5 | ||||
-rw-r--r-- | src/layouts/PageLayout.astro | 9 |
2 files changed, 5 insertions, 9 deletions
diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro index 54c9128..f867900 100644 --- a/src/layouts/BaseLayout.astro +++ b/src/layouts/BaseLayout.astro @@ -3,6 +3,11 @@ import Head from "../components/Head.astro"; import Header from "../components/Header.astro"; import "../scss/global.scss"; +type Props = { + readonly description?: string; + readonly title?: string; +}; + const { title, description } = Astro.props; --- diff --git a/src/layouts/PageLayout.astro b/src/layouts/PageLayout.astro deleted file mode 100644 index eff37fb..0000000 --- a/src/layouts/PageLayout.astro +++ /dev/null @@ -1,9 +0,0 @@ ---- -import BaseLayout from "./BaseLayout.astro"; - -const { title, description } = Astro.props; ---- - -<BaseLayout title={title} description={description}> - <slot /> -</BaseLayout> |