aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'src/components')
-rw-r--r--src/components/Comments.astro4
-rw-r--r--src/components/Head.astro15
2 files changed, 10 insertions, 9 deletions
diff --git a/src/components/Comments.astro b/src/components/Comments.astro
index 5fcd65d..f9ae4e5 100644
--- a/src/components/Comments.astro
+++ b/src/components/Comments.astro
@@ -14,7 +14,6 @@ const theme = "transparent_dark";
---
<script
- defer
src="https://giscus.app/client.js"
data-category-id={categoryId}
data-category={category}
@@ -28,5 +27,4 @@ const theme = "transparent_dark";
data-strict={strict}
data-theme={theme}
crossorigin={crossorigin}
->
-</script>
+></script>
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>