Update userpage SEO
This commit is contained in:
parent
64267a7f1a
commit
0ea6233ba4
|
@ -31,20 +31,15 @@ export function UserLink(props: {
|
||||||
|
|
||||||
export function UserPage(props: { user: User; currentUser?: User }) {
|
export function UserPage(props: { user: User; currentUser?: User }) {
|
||||||
const { user, currentUser } = props
|
const { user, currentUser } = props
|
||||||
|
|
||||||
const isCurrentUser = user.id === currentUser?.id
|
const isCurrentUser = user.id === currentUser?.id
|
||||||
|
|
||||||
const possesive = isCurrentUser ? 'Your ' : `${user.name}'s `
|
|
||||||
|
|
||||||
const bannerUrl = user.bannerUrl ?? defaultBannerUrl(user.id)
|
const bannerUrl = user.bannerUrl ?? defaultBannerUrl(user.id)
|
||||||
|
|
||||||
const placeholderBio = `I... haven't gotten around to writing a bio yet 😛`
|
const placeholderBio = `I... haven't gotten around to writing a bio yet 😛`
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Page>
|
<Page>
|
||||||
<SEO
|
<SEO
|
||||||
title={possesive + 'markets'}
|
title={`${user.name} (@${user.username})`}
|
||||||
description={possesive + 'markets'}
|
description={user.bio ?? placeholderBio}
|
||||||
url={`/${user.username}`}
|
url={`/${user.username}`}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user