feat: add support for pronouns

Close #3190
This commit is contained in:
George Cushen committed 2025-08-17 22:56:49 +01:00
1 parent 37518f31f5
commit 25ba004afe
11 files changed
+36 -6

No files matched your search

+3 -3
View File
@@ -34,11 +34,11 @@ jobs:
- recursive: false
args: [--frozen-lockfile]
- name: Install Tailwind v4 dependencies
- name: Install Tailwind v4 dependencies for test site
run: |
cd modules/blox-tailwind
cd test
pnpm install --frozen-lockfile
cd ../..
cd ..
- name: Check for linting errors
run: pnpm run lint:js # TODO: also lint styles again once new rule errors resolved
@@ -16,6 +16,7 @@ collections:
- {label: "Display name (such as your full name)", name: "title", widget: "string"}
- {label: "First name", name: "first_name", widget: "string", required: false}
- {label: "Last name", name: "last_name", widget: "string", required: false}
- {label: "Pronouns (e.g., she/her, he/him, they/them)", name: "pronouns", widget: "string", required: false}
- {label: "Position or tagline (such as Professor of AI)", name: "role", widget: "string", required: false}
- label: "Avatar (upload an image named `avatar.jpg/png`)"
name: "avatar_filename"
@@ -62,6 +62,9 @@
{{- $person_page.Title -}}
{{- end -}}
</div>
{{- with $person.pronouns -}}
<div class="text-lg font-normal text-gray-600 dark:text-gray-400 -mt-1 mb-2">({{ . }})</div>
{{- end -}}
{{ with $person.role }}<h3 class="font-semibold mb-1">{{ . | markdownify | emojify }}</h3>{{ end }}
@@ -56,6 +56,9 @@
{{- $person_page.Title -}}
{{- end -}}
</div>
{{- with $person.pronouns -}}
<div class="text-lg font-normal text-gray-600 dark:text-gray-400 -mt-1 mb-2">({{ . }})</div>
{{- end -}}
{{ with $person.role }}<h3 class="font-semibold mb-1">{{ . | markdownify | emojify }}</h3>{{ end }}
@@ -30,9 +30,14 @@
{{ i18n "authors" }}
</div>
<div class="font-semibold leading-6 text-neutral-800 dark:text-neutral-300">
{{if $profile_url}}<a href="{{$profile_url}}" class="no-underline">{{end}}
{{$author_page.Title}}
{{if $profile_url}}</a>{{end}}
<span class="inline-block">
{{if $profile_url}}<a href="{{$profile_url}}" class="no-underline">{{end}}
{{$author_page.Title}}
{{if $profile_url}}</a>{{end}}
</span>
{{- with $author_page.Params.pronouns -}}
<span class="text-sm font-normal text-gray-600 dark:text-gray-400 ml-1 inline-block">({{ . }})</span>
{{- end -}}
</div>
{{ with $author_page.Params.role }}
@@ -9,6 +9,9 @@ name_pronunciation: Chien Shiung Wu
first_name: Shiung Wu
last_name: Chien
# Pronouns (optional)
pronouns: she/her
# Status emoji
status:
icon: ☕️
@@ -9,6 +9,9 @@ name_pronunciation: Chien Shiung Wu
first_name: Shiung Wu
last_name: Chien
# Pronouns (optional)
pronouns: she/her
# Status emoji
status:
icon: ☕️
@@ -9,6 +9,9 @@ name_pronunciation: Chien Shiung Wu
first_name: Shiung Wu
last_name: Chien
# Pronouns (optional)
pronouns: she/her
# Status emoji
status:
icon: ☕️
@@ -9,6 +9,9 @@ name_pronunciation: Chien Shiung Wu
first_name: Shiung Wu
last_name: Chien
# Pronouns (optional)
pronouns: she/her
# Status emoji
status:
icon: ☕️
@@ -9,6 +9,9 @@ name_pronunciation: Chien Shiung Wu
first_name: Shiung Wu
last_name: Chien
# Pronouns (optional)
pronouns: she/her
# Status emoji
status:
icon: ☕️
@@ -9,6 +9,9 @@ name_pronunciation: Chien Shiung Wu
first_name: Shiung Wu
last_name: Chien
# Pronouns (optional)
pronouns: she/her
# Status emoji
status:
icon: ☕️