feat: add pronouns page

This commit is contained in:
Sam 2023-03-14 02:18:21 +01:00
parent 5ee069a5bd
commit 8cab186ee4
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
4 changed files with 82 additions and 1 deletions

View file

@ -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}

View 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" }
}
}