mirror of
https://codeberg.org/pronounscc/pronouns.cc.git
synced 2024-11-20 12:19:52 +01:00
fix(frontend): fix meta tags
This commit is contained in:
parent
dcf36465ea
commit
c4d7acc3f6
2 changed files with 9 additions and 7 deletions
|
@ -234,7 +234,7 @@
|
|||
{:else if data.bio && data.bio !== ""}
|
||||
<meta
|
||||
property="og:description"
|
||||
content="{data.bio.slice(0, 500)}${data.bio.length > 500 ? '…' : ''}"
|
||||
content="{data.bio.slice(0, 500)}{data.bio.length > 500 ? '…' : ''}"
|
||||
/>
|
||||
{:else}
|
||||
<meta property="og:description" content="@{data.name} on pronouns.cc" />
|
||||
|
|
|
@ -109,24 +109,26 @@
|
|||
{#if favNames.length !== 0 && favPronouns.length !== 0}
|
||||
<meta
|
||||
property="og:description"
|
||||
content="{data.name} goes by {favNames.map((x) => x.value).join(', ')} and uses {favPronouns
|
||||
.map((x) => pronounDisplay(x))
|
||||
.join(', ')} pronouns."
|
||||
content="{data.display_name ?? data.name} goes by {favNames
|
||||
.map((x) => x.value)
|
||||
.join(', ')} and uses {favPronouns.map((x) => pronounDisplay(x)).join(', ')} pronouns."
|
||||
/>
|
||||
{:else if favNames.length !== 0}
|
||||
<meta
|
||||
property="og:description"
|
||||
content="{data.name} goes by {favNames.map((x) => x.value).join(', ')}."
|
||||
content="{data.display_name ?? data.name} goes by {favNames.map((x) => x.value).join(', ')}."
|
||||
/>
|
||||
{:else if favPronouns.length !== 0}
|
||||
<meta
|
||||
property="og:description"
|
||||
content="{data.name} uses {favPronouns.map((x) => pronounDisplay(x)).join(', ')} pronouns."
|
||||
content="{data.display_name ?? data.name} uses {favPronouns
|
||||
.map((x) => pronounDisplay(x))
|
||||
.join(', ')} pronouns."
|
||||
/>
|
||||
{:else if data.bio && data.bio !== ""}
|
||||
<meta
|
||||
property="og:description"
|
||||
content="{data.bio.slice(0, 500)}${data.bio.length > 500 ? '…' : ''}"
|
||||
content="{data.bio.slice(0, 500)}{data.bio.length > 500 ? '…' : ''}"
|
||||
/>
|
||||
{:else}
|
||||
<meta property="og:description" content="{data.name} (@{data.user.name}) on pronouns.cc" />
|
||||
|
|
Loading…
Reference in a new issue