Skip to content

Commit

Permalink
Merge pull request #405 from DeterminateSystems/seo-metadata
Browse files Browse the repository at this point in the history
Add missing SEO metadata
  • Loading branch information
lucperkins authored Jan 17, 2025
2 parents 07323bc + 7b64e70 commit cbaf514
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/components/Head.astro
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ const canonical = new URL(Astro.url.pathname, root);
const { title: siteTitle, description: siteDescription } = site;
const { title, description, tags } = Astro.props;
const image = `${root}favicon.png`;
---

<script is:inline>
Expand Down Expand Up @@ -51,6 +53,21 @@ const { title, description, tags } = Astro.props;
title={title ?? siteTitle}
description={description ?? siteDescription}
{canonical}
openGraph={{
basic: {
title: title ?? siteTitle,
type: "website",
url: canonical,
image,
},
}}
twitter={{
site: root,
title: title ?? siteTitle,
description,
image,
card: "summary"
}}
/>

<link
Expand Down

0 comments on commit cbaf514

Please sign in to comment.