From bfdf988cae52b33bcb8989d4d9545e6da48fa79e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20P=C4=99dzich?= Date: Sat, 7 Jan 2023 14:58:23 +0100 Subject: [PATCH] Add description prop and url meta tags --- src/layouts/Layout.astro | 41 ++++++++++++++++++---------------------- 1 file changed, 18 insertions(+), 23 deletions(-) diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index bfa6b58..0c7d0e4 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -1,13 +1,17 @@ --- import '@fortawesome/fontawesome-free/css/all.min.css'; +import '../styles/global.css'; import NavItems from '../components/NavItems.astro'; interface Props { title: string; + description: string; } -const { title } = Astro.props; +const { title, description } = Astro.props as Props; + +const metaTagTitle = `${title} - Spotify Playlist Archive`; --- @@ -17,38 +21,29 @@ const { title } = Astro.props; - - {title} - Spotify Playlist Archive - + + {metaTagTitle} + - - - + + + - + - - + + - +