Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -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
---

<!doctype html>
Expand Down