From 6d7c86606951a9ed8e4f1c242688994c1a7480e1 Mon Sep 17 00:00:00 2001 From: Steve Paul Date: Fri, 15 Dec 2023 08:34:50 +0530 Subject: [PATCH] Refactor header and add tagline --- src/layouts/Layout.astro | 12 +++++++----- src/pages/index.astro | 4 +++- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 6b7d988..a5c251a 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -1,9 +1,11 @@ --- export interface Props { + site: string; title: string; + tagline: string; } -const { title } = Astro.props; +const { site, title, tagline } = Astro.props; --- @@ -14,7 +16,7 @@ const { title } = Astro.props; - {title} + {site} — {tagline} @@ -28,9 +30,10 @@ const { title } = Astro.props; -
+
-

Enhance Your Craft with AI

+

{title}

+

{tagline}