fix: add author url in Google JSON-LD conditionally

This commit is contained in:
satnaing
2025-03-07 19:41:40 +07:00
committed by Sat Naing
parent 579c29aac5
commit b995f4dada
+1 -1
View File
@@ -43,7 +43,7 @@ const structuredData = {
{ {
"@type": "Person", "@type": "Person",
name: `${author}`, name: `${author}`,
url: `${profile}`, ...(profile && { url: profile }),
}, },
], ],
}; };