aboutsummaryrefslogtreecommitdiff
path: root/src/components/Head.astro
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/Head.astro')
-rw-r--r--src/components/Head.astro8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/components/Head.astro b/src/components/Head.astro
index de74ff2..a421915 100644
--- a/src/components/Head.astro
+++ b/src/components/Head.astro
@@ -1,11 +1,15 @@
---
+import type { WithContext, Thing } from "schema-dts";
+import JsonLd from "./JsonLd.astro";
+
type Props = {
readonly description: string;
readonly title: string;
+ readonly schema: WithContext<Thing>;
};
const canonicalURL = new URL(Astro.url.pathname, Astro.site);
-const { description, title } = Astro.props;
+const { description, title, schema } = Astro.props;
---
<head>
@@ -27,4 +31,6 @@ const { description, title } = Astro.props;
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
<link rel="manifest" href="/manifest.json" />
<meta name="theme-color" content="#ffffff" />
+
+ <JsonLd schema={schema} />
</head>