Update userpage SEO

This commit is contained in:
Austin Chen 2022-02-16 16:47:02 -08:00
parent 64267a7f1a
commit 0ea6233ba4

View File

@ -31,20 +31,15 @@ export function UserLink(props: {
export function UserPage(props: { user: User; currentUser?: User }) {
const { user, currentUser } = props
const isCurrentUser = user.id === currentUser?.id
const possesive = isCurrentUser ? 'Your ' : `${user.name}'s `
const bannerUrl = user.bannerUrl ?? defaultBannerUrl(user.id)
const placeholderBio = `I... haven't gotten around to writing a bio yet 😛`
return (
<Page>
<SEO
title={possesive + 'markets'}
description={possesive + 'markets'}
title={`${user.name} (@${user.username})`}
description={user.bio ?? placeholderBio}
url={`/${user.username}`}
/>