mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 11:29:33 +08:00
fix: add author url in Google JSON-LD conditionally
This commit is contained in:
@@ -43,7 +43,7 @@ const structuredData = {
|
|||||||
{
|
{
|
||||||
"@type": "Person",
|
"@type": "Person",
|
||||||
name: `${author}`,
|
name: `${author}`,
|
||||||
url: `${profile}`,
|
...(profile && { url: profile }),
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user