Skip to content

Commit 25ba004

Browse files
committed
feat: add support for pronouns
Close #3190
1 parent 37518f3 commit 25ba004

File tree

11 files changed

+36
-6
lines changed

11 files changed

+36
-6
lines changed

.github/workflows/build-test-site.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ jobs:
3434
- recursive: false
3535
args: [--frozen-lockfile]
3636
37-
- name: Install Tailwind v4 dependencies
37+
- name: Install Tailwind v4 dependencies for test site
3838
run: |
39-
cd modules/blox-tailwind
39+
cd test
4040
pnpm install --frozen-lockfile
41-
cd ../..
41+
cd ..
4242
4343
- name: Check for linting errors
4444
run: pnpm run lint:js # TODO: also lint styles again once new rule errors resolved

modules/blox-plugin-decap-cms/data/decap_cms_config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ collections:
1616
- {label: "Display name (such as your full name)", name: "title", widget: "string"}
1717
- {label: "First name", name: "first_name", widget: "string", required: false}
1818
- {label: "Last name", name: "last_name", widget: "string", required: false}
19+
- {label: "Pronouns (e.g., she/her, he/him, they/them)", name: "pronouns", widget: "string", required: false}
1920
- {label: "Position or tagline (such as Professor of AI)", name: "role", widget: "string", required: false}
2021
- label: "Avatar (upload an image named `avatar.jpg/png`)"
2122
name: "avatar_filename"

modules/blox-tailwind/layouts/_partials/blox/resume-biography-3.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@
6262
{{- $person_page.Title -}}
6363
{{- end -}}
6464
</div>
65+
{{- with $person.pronouns -}}
66+
<div class="text-lg font-normal text-gray-600 dark:text-gray-400 -mt-1 mb-2">({{ . }})</div>
67+
{{- end -}}
6568

6669
{{ with $person.role }}<h3 class="font-semibold mb-1">{{ . | markdownify | emojify }}</h3>{{ end }}
6770

modules/blox-tailwind/layouts/_partials/blox/resume-biography.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@
5656
{{- $person_page.Title -}}
5757
{{- end -}}
5858
</div>
59+
{{- with $person.pronouns -}}
60+
<div class="text-lg font-normal text-gray-600 dark:text-gray-400 -mt-1 mb-2">({{ . }})</div>
61+
{{- end -}}
5962

6063
{{ with $person.role }}<h3 class="font-semibold mb-1">{{ . | markdownify | emojify }}</h3>{{ end }}
6164

modules/blox-tailwind/layouts/_partials/page_author_card.html

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,14 @@
3030
{{ i18n "authors" }}
3131
</div>
3232
<div class="font-semibold leading-6 text-neutral-800 dark:text-neutral-300">
33-
{{if $profile_url}}<a href="{{$profile_url}}" class="no-underline">{{end}}
34-
{{$author_page.Title}}
35-
{{if $profile_url}}</a>{{end}}
33+
<span class="inline-block">
34+
{{if $profile_url}}<a href="{{$profile_url}}" class="no-underline">{{end}}
35+
{{$author_page.Title}}
36+
{{if $profile_url}}</a>{{end}}
37+
</span>
38+
{{- with $author_page.Params.pronouns -}}
39+
<span class="text-sm font-normal text-gray-600 dark:text-gray-400 ml-1 inline-block">({{ . }})</span>
40+
{{- end -}}
3641
</div>
3742

3843
{{ with $author_page.Params.role }}

starters/academic-cv/content/authors/admin/_index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ name_pronunciation: Chien Shiung Wu
99
first_name: Shiung Wu
1010
last_name: Chien
1111

12+
# Pronouns (optional)
13+
pronouns: she/her
14+
1215
# Status emoji
1316
status:
1417
icon: ☕️

starters/blog/content/authors/admin/_index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ name_pronunciation: Chien Shiung Wu
99
first_name: Shiung Wu
1010
last_name: Chien
1111

12+
# Pronouns (optional)
13+
pronouns: she/her
14+
1215
# Status emoji
1316
status:
1417
icon: ☕️

starters/documentation/content/authors/admin/_index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ name_pronunciation: Chien Shiung Wu
99
first_name: Shiung Wu
1010
last_name: Chien
1111

12+
# Pronouns (optional)
13+
pronouns: she/her
14+
1215
# Status emoji
1316
status:
1417
icon: ☕️

starters/landing-page/content/authors/admin/_index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ name_pronunciation: Chien Shiung Wu
99
first_name: Shiung Wu
1010
last_name: Chien
1111

12+
# Pronouns (optional)
13+
pronouns: she/her
14+
1215
# Status emoji
1316
status:
1417
icon: ☕️

starters/link-in-bio/content/authors/admin/_index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ name_pronunciation: Chien Shiung Wu
99
first_name: Shiung Wu
1010
last_name: Chien
1111

12+
# Pronouns (optional)
13+
pronouns: she/her
14+
1215
# Status emoji
1316
status:
1417
icon: ☕️

0 commit comments

Comments
 (0)