aboutsummaryrefslogtreecommitdiff
path: root/src/layouts
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2024-09-12 19:36:57 +0300
committerValentin Popov <valentin@popov.link>2024-09-12 19:36:57 +0300
commit3376c53b2ee91041d5eaa0f9274da0affd7d4a9d (patch)
treea6b1e66a7e7f185128870b8f0ed671e2d7630f0e /src/layouts
parent0b57b888caf8817ff4992c59ed40ed29bee34fd4 (diff)
downloadpopov.link-3376c53b2ee91041d5eaa0f9274da0affd7d4a9d.tar.xz
popov.link-3376c53b2ee91041d5eaa0f9274da0affd7d4a9d.zip
Refactor Astro components and layouts
Diffstat (limited to 'src/layouts')
-rw-r--r--src/layouts/BaseLayout.astro5
-rw-r--r--src/layouts/PageLayout.astro9
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>