Skip to content

Commit

Permalink
fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
jinglescode committed Nov 11, 2024
1 parent 94edf4d commit 279d4a1
Showing 1 changed file with 9 additions and 17 deletions.
26 changes: 9 additions & 17 deletions apps/playground/src/components/site/metatags.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ export default function Metatags({
title,
keywords,
description,
image,
}: {
title?: string;
keywords?: string;
description?: string;
image?: string;
}) {
if (description === undefined) {
description =
Expand Down Expand Up @@ -38,15 +40,10 @@ export default function Metatags({
<meta property="og:site_name" content={_title} />
<meta property="og:type" content="website" />
<meta property="og:description" content={description} />
{/* {image ? (
{image && (
<meta property="og:image" content={`https://meshjs.dev${image}`} />
) : (
<meta
property="og:image"
content={`https://meshjs.dev/api/og?title=${title}`}
/>
)} */}
{title && (
)}
{title && image === undefined && (
<meta
property="og:image"
content={`https://meshjs.dev/api/og?title=${title}`}
Expand All @@ -59,15 +56,10 @@ export default function Metatags({
<meta name="twitter:title" content={_title} />
<meta name="twitter:description" content={description} />
<meta name="twitter:creator" content="@meshsdk" />
{/* {image ? (
<meta name="twitter:image" content={`https://meshjs.dev${image}`} />
) : (
<meta
name="twitter:image"
content={`https://meshjs.dev/api/og?title=${title}`}
/>
)} */}
{title && (
{image && (
<meta property="twitter:image" content={`https://meshjs.dev${image}`} />
)}
{title && image === undefined && (
<meta
property="twitter:image"
content={`https://meshjs.dev/api/og?title=${title}`}
Expand Down

0 comments on commit 279d4a1

Please sign in to comment.