From cb6af0349dc98c3e753c48c76ce57e18f937b849 Mon Sep 17 00:00:00 2001 From: Eduard Aksamitov Date: Tue, 24 Jun 2025 16:45:52 +0300 Subject: [PATCH] fix(meta): undefined author --- src/layouts/Layout.astro | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 234acd9..377e928 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -20,7 +20,9 @@ const siteUrl = Astro.site const siteName = 'TryBrew' const authorEntry = authorRef ? await getEntry(authorRef) : undefined -const author = authorEntry?.data.name + (authorName ? ` (${authorName})` : '') +const author = authorEntry?.data.name + ? authorEntry.data.name + (authorName ? ` (${authorName})` : '') + : undefined ---