diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 31a1d7032..f0b7569ce 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -5,6 +5,7 @@ import Banner from "../components/Banner.astro"; import Navbar from "../components/Navbar.astro"; export interface Props { + isFront: boolean; title: string; } @@ -39,6 +40,7 @@ const footerLinks = [ ]; const canonicalURL = new URL(Astro.url.pathname, Astro.site).toString().replace(/\/$/, ""); +const isFrontPage = Astro.props.isFront; --- @@ -54,7 +56,7 @@ const canonicalURL = new URL(Astro.url.pathname, Astro.site).toString().replace( rel="stylesheet" /> - {title} + {isFrontPage ? title : `${title} | Oliver Davies`}