diff --git a/package-lock.json b/package-lock.json index 219c8bd..835f63c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@ayco/cozy", - "version": "0.1.15", + "version": "0.1.16", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@ayco/cozy", - "version": "0.1.15", + "version": "0.1.16", "dependencies": { "@astrojs/netlify": "^2.2.2", "@extractus/article-extractor": "^7.2.15", diff --git a/package.json b/package.json index 58fe8f9..d9a9149 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ayco/cozy", - "version": "0.1.15", + "version": "0.1.16", "scripts": { "start": "astro dev", "build": "astro build" 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 !== '/' ? ( + + + ) : ( + + + + + + ) + }