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}
|
||||
|
|
12
frontend/src/lib/pronouns.json
Normal file
12
frontend/src/lib/pronouns.json
Normal file
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"pronouns": {
|
||||
"they": { "pronouns": ["they", "them", "their", "theirs", "themself"] },
|
||||
"they/them": { "pronouns": ["they", "them", "their", "theirs", "themself"] },
|
||||
"he": { "pronouns": ["he", "him", "his", "his", "himself"] },
|
||||
"he/him": { "pronouns": ["he", "him", "his", "his", "himself"] },
|
||||
"she": { "pronouns": ["she", "her", "her", "hers", "herself"] },
|
||||
"she/her": { "pronouns": ["she", "her", "her", "hers", "herself"] },
|
||||
"it": { "pronouns": ["it", "it", "its", "its", "itself"], "display": "it/its" },
|
||||
"it/its": { "pronouns": ["it", "it", "its", "its", "itself"], "display": "it/its" }
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue