aboutsummaryrefslogtreecommitdiff
path: root/src/components/Head.astro
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2024-09-12 01:03:55 +0300
committerValentin Popov <valentin@popov.link>2024-09-12 01:03:55 +0300
commitc89ed0f7f9dcf14d1d96ad0d13ad59f5b542396e (patch)
tree9c2a9ab17662a1b9c9539c9246b19b82f46d47f8 /src/components/Head.astro
parent97aa90a605602b9385ba734e2bd9d155aed954e8 (diff)
downloadpopov.link-c89ed0f7f9dcf14d1d96ad0d13ad59f5b542396e.tar.xz
popov.link-c89ed0f7f9dcf14d1d96ad0d13ad59f5b542396e.zip
Update default title and description
Diffstat (limited to 'src/components/Head.astro')
-rw-r--r--src/components/Head.astro15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/components/Head.astro b/src/components/Head.astro
index bc5609f..42ae32b 100644
--- a/src/components/Head.astro
+++ b/src/components/Head.astro
@@ -1,17 +1,20 @@
---
const canonicalURL = new URL(Astro.url.pathname, Astro.site);
+
+const { title, description } = Astro.props;
---
<head>
- <meta content="IE=edge" http-equiv="X-UA-Compatible" />
- <meta content="text/html; charset=utf-8" http-equiv="content-type" />
- <meta content="width=device-width, initial-scale=1" name="viewport" />
- <meta content="index, follow" name="robots" />
- <meta content="Description" name="description" />
+ <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="robots" content="index, follow" />
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
<link href="/feed.xml" rel="alternate" title="RSS" type="application/atom+xml" />
<link href="/sitemap-index.xml" rel="sitemap" />
<link href={canonicalURL} rel="canonical" />
- <title>Title</title>
+ <title>{title ?? import.meta.env.DEFAULT_TITLE}</title>
</head>