diff --git a/src/components/AddressBar.astro b/src/components/AddressBar.astro index b21725b..b8fbf83 100644 --- a/src/components/AddressBar.astro +++ b/src/components/AddressBar.astro @@ -8,14 +8,14 @@ const { url } = Astro.props;
- - -
diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index a967329..2c8980b 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -4,8 +4,8 @@ import "./reset.css"; export interface Props { meta: ArticleData } -const appTitle = "Cozy 🧸"; const { meta } = Astro.props; +const appTitle = `Cozy 🧸${meta.title && `| ${meta.title}`}`; --- @@ -14,7 +14,20 @@ const { meta } = Astro.props; - {appTitle} {meta.title && `| ${meta.title}`} + {appTitle} + + { + meta.url !== '/' ? ( + + + ) : ( + + + + + + ) + }