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 ---