Skip to content

Commit

Permalink
fix(meta): use absolute path for image
Browse files Browse the repository at this point in the history
  • Loading branch information
obviyus committed Jul 22, 2022
1 parent 0b34c2b commit dc97f7c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ export const meta: MetaFunction = () => ({
"og:description": config.description,
"og:type": "website",
"og:url": config.url,
"og:image": config.socialPreviewImage,
"og:image": `${ config.url }/image/${ config.socialPreviewImage }`,
"og:locale": "en_US",
"og:locale_alternative": "fr_FR",
"twitter:card": "summary_large_image",
"twitter:title": config.title,
"twitter:image": config.socialPreviewImage,
"twitter:image": `${ config.url }/image/${ config.socialPreviewImage }`,

});

Expand Down
4 changes: 2 additions & 2 deletions app/routes/image/$name.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ export const meta: MetaFunction = ({ data }) => {
"og:title": data.title,
"og:type": "image",
"og:url": `${ config.url }/image/${ data.name }`,
"og:image": data.image,
"og:image": `${ config.url }/${ data.image }`,
"twitter:card": "summary_large_image",
"twitter:title": data.title,
"twitter:image": data.image,
"twitter:image": `${ config.url }/${ data.image }`,
}
};

Expand Down

0 comments on commit dc97f7c

Please sign in to comment.