Skip to content

Commit b995f4d

Browse files
committed
fix: add author url in Google JSON-LD conditionally
1 parent 579c29a commit b995f4d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/layouts/Layout.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const structuredData = {
4343
{
4444
"@type": "Person",
4545
name: `${author}`,
46-
url: `${profile}`,
46+
...(profile && { url: profile }),
4747
},
4848
],
4949
};

0 commit comments

Comments
 (0)