diff --git a/src/components/BaseHead.astro b/src/components/BaseHead.astro
index 88db36b..eb39945 100644
--- a/src/components/BaseHead.astro
+++ b/src/components/BaseHead.astro
@@ -2,6 +2,7 @@
// Import the global.css file here so that it is included on
// all pages through the use of the component.
import '../styles/global.css';
+import { SITE_TITLE } from '../consts';
export interface Props {
title: string;
@@ -9,9 +10,10 @@ export interface Props {
image?: string;
}
-const canonicalURL = new URL(Astro.url.pathname, Astro.site);
-
const { title, description, image = '/placeholder-social.jpg' } = Astro.props;
+
+const canonicalURL = new URL(Astro.url.pathname, Astro.site);
+const actualTitle = title === 'home' ? SITE_TITLE : title + ' | ' + SITE_TITLE;
---
@@ -19,16 +21,16 @@ const { title, description, image = '/placeholder-social.jpg' } = Astro.props;
-
{title}
-
+{actualTitle}
+
-
+
-
+