Skip to content

Commit

Permalink
Merge pull request #3001 from opral/nilsjacobsen/inweb-94-fix-or-hand…
Browse files Browse the repository at this point in the history
…le-chunk-error-on-website

fix: missing og image | inlang.com 🌎
  • Loading branch information
NilsJacobsen authored Jul 3, 2024
2 parents 8a79667 + c53bda0 commit d41b79b
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 d41b79b

Please sign in to comment.