diff options
author | Valentin Popov <valentin@popov.link> | 2024-09-12 19:36:57 +0300 |
---|---|---|
committer | Valentin Popov <valentin@popov.link> | 2024-09-12 19:36:57 +0300 |
commit | 3376c53b2ee91041d5eaa0f9274da0affd7d4a9d (patch) | |
tree | a6b1e66a7e7f185128870b8f0ed671e2d7630f0e /src/layouts | |
parent | 0b57b888caf8817ff4992c59ed40ed29bee34fd4 (diff) | |
download | popov.link-3376c53b2ee91041d5eaa0f9274da0affd7d4a9d.tar.xz popov.link-3376c53b2ee91041d5eaa0f9274da0affd7d4a9d.zip |
Refactor Astro components and layouts
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> |