feat: add pronouns page
This commit is contained in:
parent
5ee069a5bd
commit
8cab186ee4
4 changed files with 82 additions and 1 deletions
|
@ -12,11 +12,14 @@
|
|||
else pronounText = split.slice(0, 2).join("/");
|
||||
}
|
||||
|
||||
const link = pronouns.display_text
|
||||
? `${pronouns.pronouns},${pronouns.display_text}`
|
||||
: pronouns.pronouns;
|
||||
const shouldLink = pronouns.pronouns.split("/").length === 5;
|
||||
</script>
|
||||
|
||||
{#if shouldLink}
|
||||
<a href="/pronouns/{pronouns.pronouns}">{pronounText}</a>
|
||||
<a href="/pronouns/{link}">{pronounText}</a>
|
||||
{:else}
|
||||
{pronounText}
|
||||
{/if}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue