From 9e0009a6d82f9fb691e121475b2bd7f9c95aa8b9 Mon Sep 17 00:00:00 2001
From: Ayo
Date: Thu, 13 Oct 2022 08:14:05 +0200
Subject: [PATCH] chore: set up SEO meta description (#1)
---
src/components/Head.astro | 22 ++++++++++++++++++++++
src/layouts/Layout.astro | 11 +++--------
2 files changed, 25 insertions(+), 8 deletions(-)
create mode 100644 src/components/Head.astro
diff --git a/src/components/Head.astro b/src/components/Head.astro
new file mode 100644
index 0000000..a802414
--- /dev/null
+++ b/src/components/Head.astro
@@ -0,0 +1,22 @@
+---
+export interface Props {
+ title: string;
+}
+const { title } = Astro.props;
+const description =
+ "Ayo Ayco is a software engineer and consultant for hire, expecializing in web development | " +
+ title;
+---
+
+
+
+
+
+
+
+
+
+
+
+ {title}
+
diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro
index 754e9b8..9f8b2f8 100644
--- a/src/layouts/Layout.astro
+++ b/src/layouts/Layout.astro
@@ -1,4 +1,5 @@
---
+import Head from "../components/Head.astro";
export interface Props {
title: string;
}
@@ -8,14 +9,8 @@ const { title } = Astro.props;
-
-
-
-
-
-
- {title}
-
+
+