Skip to content

Commit

Permalink
Add meta name attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
monachilada committed Aug 9, 2024
1 parent dbbb42c commit 2add15f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/dito/app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,17 @@ export const meta: MetaFunction<typeof loader> = ({
const baseMeta = [
{ title },
{
name: "title",
property: "title",
content: title,
},
{
name: "og:title",
property: "og:title",
content: title,
},
{
name: "twitter:title",
property: "twitter:title",
content: title,
},
Expand All @@ -92,38 +95,47 @@ export const meta: MetaFunction<typeof loader> = ({
return [
...baseMeta,
{
name: "description",
property: "description",
content: siteMeta.description,
},
{
name: "og:description",
property: "og:description",
content: siteMeta.description,
},
{
name: "twitter:description",
property: "twitter:description",
content: siteMeta.description,
},
{
name: "og:url",
property: "og:url",
content: url,
},
{
name: "twitter:url",
property: "twitter:url",
content: url,
},
{
name: "og:image",
property: "og:image",
content: ogImage,
},
{
name: "twitter:image",
property: "twitter:image",
content: ogImage,
},
{
name: "og:type",
property: "og:type",
content: "website",
},
{
name: "twitter:card",
property: "twitter:card",
content: "summary_large_image",
},
Expand Down

0 comments on commit 2add15f

Please sign in to comment.