aboutsummaryrefslogtreecommitdiff
path: root/src/components/Head.astro
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2024-09-13 01:57:55 +0300
committerValentin Popov <valentin@popov.link>2024-09-13 01:57:55 +0300
commit33c9464dad0979b05323e4d508875ad47e1c425f (patch)
tree2bc986dbbb0278250ec6c48c4a1dae43ea20bd08 /src/components/Head.astro
parentb16d8ce36ce5c603a4444979c30998416c416929 (diff)
downloadpopov.link-33c9464dad0979b05323e4d508875ad47e1c425f.tar.xz
popov.link-33c9464dad0979b05323e4d508875ad47e1c425f.zip
Refactor Analytics and Head components
Diffstat (limited to 'src/components/Head.astro')
-rw-r--r--src/components/Head.astro10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/components/Head.astro b/src/components/Head.astro
index 7a575a9..9d7f39c 100644
--- a/src/components/Head.astro
+++ b/src/components/Head.astro
@@ -1,18 +1,18 @@
---
type Props = {
- readonly description?: string;
- readonly title?: string;
+ readonly description: string;
+ readonly title: string;
};
const canonicalURL = new URL(Astro.url.pathname, Astro.site);
-const { title, description } = Astro.props;
+const { description, title } = Astro.props;
---
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
- <meta name="description" content={description ?? import.meta.env.DEFAULT_DESCRIPTION} />
+ <meta name="description" content={description} />
<meta name="robots" content="index, follow" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
@@ -20,5 +20,5 @@ const { title, description } = Astro.props;
<link href="/sitemap-index.xml" rel="sitemap" />
<link href={canonicalURL} rel="canonical" />
- <title>{title ?? import.meta.env.DEFAULT_TITLE}</title>
+ <title>{title}</title>
</head>