Skip to content

Commit

Permalink
fix: seo meta when on landing pg
Browse files Browse the repository at this point in the history
  • Loading branch information
SangeetAgarwal committed Feb 8, 2024
1 parent ce087b8 commit dcdc6a1
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions app/routes/__index/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,24 @@ import type { BlogFrontMatter } from "~/types/mdx";
export let meta = (context: any) => {
let seoMeta = getSeoMeta({
title: "Home",
description: siteMetadata.description,
twitter: {
card: "summary_large_image",
site: `${siteMetadata.siteUrl}`,
creator: `${siteMetadata.twitterUsername}`,
title: "Home",
description: siteMetadata.description,
image: {
url: `${siteMetadata.siteUrl}/static/images/twitter-card.png`,
alt: "Home",
},
},
openGraph: {
description: siteMetadata.description,
title: "Home",
url: `${siteMetadata.siteUrl}`,
type: "website",
},
});
return {
...seoMeta,
Expand Down

0 comments on commit dcdc6a1

Please sign in to comment.