Skip to content

Commit

Permalink
adjust SEO title
Browse files Browse the repository at this point in the history
  • Loading branch information
Ondřej Chrastina committed Sep 22, 2023
1 parent c8fc5d6 commit e8de5ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/shared/ui/appPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,6 @@ const createMetaTitle = (siteCodename: ValidCollectionCodename, item: AcceptedIt
const siteTitle = perCollectionSEOTitle[siteCodename];
const pageTitle = item.elements.metadataTitle.value;

return pageTitle !== siteTitle ? `${pageTitle} | ${siteTitle}` : siteTitle;
return pageTitle && pageTitle !== siteTitle ? `${pageTitle} | ${siteTitle}` : siteTitle;
};

2 comments on commit e8de5ba

@vercel
Copy link

@vercel vercel bot commented on e8de5ba Sep 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on e8de5ba Sep 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.