From 5008652d233f3fb604061d940971ec7c1ec53e58 Mon Sep 17 00:00:00 2001 From: Ayo Date: Sat, 18 Mar 2023 13:27:18 +0100 Subject: [PATCH] fix default title for homepage --- src/components/Head.astro | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/Head.astro b/src/components/Head.astro index a1236b1..4467406 100644 --- a/src/components/Head.astro +++ b/src/components/Head.astro @@ -4,17 +4,17 @@ export interface Props { description: string | undefined; } const defaultDescription = - "Ayo Ayco is a professional software engineer specializing in web development with a decade of experience building web applications for both private businesses and government-funded high-impact projects utilizing web technologies, IoT, data viz/insights, remote sensing, and GIS"; + "Professional software engineer specializing in web development with a decade of experience building web applications for both private businesses and government-funded high-impact projects utilizing web technologies, IoT, data viz/insights, remote sensing, and GIS"; const defaultTitle = "Ayo Ayco | Software Engineer, Web Developer, Consultant"; -let { title, description = defaultDescription } = Astro.props; +let { title = defaultTitle, description = defaultDescription } = Astro.props; const baseURL = "https://ayo.ayco.io"; --- - {title || defaultTitle} + {title} @@ -33,16 +33,16 @@ const baseURL = "https://ayo.ayco.io"; - + { - title ? ( + title !== defaultTitle ? ( ) : ( - + ) }