Update Open Graph image handling for improved SEO and social sharing
This commit is contained in:
parent
8d4f51aaf8
commit
4a6a6f5900
1 changed files with 3 additions and 3 deletions
|
|
@ -112,15 +112,15 @@ const AnnuncioDettaglio: NextPage<AnnuncioProps> = ({
|
|||
<meta property="og:type" content="website" />
|
||||
<meta property="og:title" content={`${cod} | ${titolo}`} />
|
||||
<meta property="og:description" content={description} />
|
||||
<meta property="og:image" content={data.og_url || ""} />
|
||||
{/* <meta
|
||||
{/* <meta property="og:image" content={data.og_url || ""} /> */}
|
||||
<meta
|
||||
property="og:image"
|
||||
content={
|
||||
data.og_url
|
||||
? `${env.NEXT_PUBLIC_BASE_URL}/api/og?og=${data.og_url}`
|
||||
: ""
|
||||
}
|
||||
/> */}
|
||||
/>
|
||||
<meta
|
||||
property="og:logo"
|
||||
content={`${env.NEXT_PUBLIC_BASE_URL}/Infoalloggi.png`}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue