From b995f4dadaeddcc24ac35195c5c1f71cbd83a09b Mon Sep 17 00:00:00 2001 From: satnaing Date: Fri, 7 Mar 2025 19:41:40 +0700 Subject: [PATCH] fix: add author url in Google JSON-LD conditionally --- src/layouts/Layout.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 2121518..7febb2f 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -43,7 +43,7 @@ const structuredData = { { "@type": "Person", name: `${author}`, - url: `${profile}`, + ...(profile && { url: profile }), }, ], };