Skip to content

Commit

Permalink
fix: missing og image
Browse files Browse the repository at this point in the history
  • Loading branch information
NilsJacobsen committed Jul 3, 2024
1 parent 8a79667 commit c53bda0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inlang/source-code/website/src/pages/m/+Page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export default function Page(props: PageProps) {
<>
<Title>{pageTitle()}</Title>
<Meta name="description" content={metaDescription()} />
{props.manifest && props.manifest.gallery ? (
{props.manifest && props.manifest.gallery && props.manifest.gallery.length > 0 ? (
<Meta name="og:image" content={props.manifest.gallery[0]} />
) : (
<Meta
Expand All @@ -70,7 +70,7 @@ export default function Page(props: PageProps) {
/>
)}
<Meta name="twitter:card" content="summary_large_image" />
{props.manifest && props.manifest.gallery ? (
{props.manifest && props.manifest.gallery && props.manifest.gallery.length > 0 ? (
<Meta name="twitter:image" content={props.manifest.gallery[0]} />
) : (
<Meta
Expand Down

0 comments on commit c53bda0

Please sign in to comment.