From b0ebcfaad97172556edb39909fc801b68c711305 Mon Sep 17 00:00:00 2001 From: Quincy Morgan <2046746+quincylvania@users.noreply.github.com> Date: Wed, 17 Apr 2024 11:55:02 -0400 Subject: [PATCH] Add pronouns to person layout (close #5) --- _layouts/person.html | 4 ++-- _people/darla-dogson.md | 1 + _people/walter-woodman.md | 1 + _sass/dogwood/_layout.scss | 16 ++++++++++++++-- _tools/frontmatter-validator/schemas/person.json | 3 +++ 5 files changed, 21 insertions(+), 4 deletions(-) diff --git a/_layouts/person.html b/_layouts/person.html index 426416f..3ba5d65 100644 --- a/_layouts/person.html +++ b/_layouts/person.html @@ -16,8 +16,8 @@
-
-

{{page.title}}

+
+

{{page.title}}

{%- if page.pronouns -%} {{ page.pronouns }}{%- endif -%}
{%- if page.osm -%} @{{page.osm}} {%- endif -%} diff --git a/_people/darla-dogson.md b/_people/darla-dogson.md index 50a8c94..3cd5532 100644 --- a/_people/darla-dogson.md +++ b/_people/darla-dogson.md @@ -1,5 +1,6 @@ --- title: Darla Dogson +pronouns: she/her image: /img/people/Morisot.jpg roles: - title: Team Lead diff --git a/_people/walter-woodman.md b/_people/walter-woodman.md index 36102a8..e0d48b9 100644 --- a/_people/walter-woodman.md +++ b/_people/walter-woodman.md @@ -1,5 +1,6 @@ --- title: Walter Woodman +pronouns: he/they image: /img/people/Renoir.jpg roles: - title: Team Lead diff --git a/_sass/dogwood/_layout.scss b/_sass/dogwood/_layout.scss index 9b24d98..743becd 100644 --- a/_sass/dogwood/_layout.scss +++ b/_sass/dogwood/_layout.scss @@ -950,9 +950,18 @@ table.schedule { border-bottom: 0; } - .name-header { + .name-section { padding-top: 0; } + .name-header { + display: flex; + align-items: baseline; + } + .pronouns { + margin-left: 8px; + font-weight: 600; + color: #777; + } } .connect-links a:not(:last-child) { margin-right: $sp; @@ -970,9 +979,12 @@ table.schedule { top: 1px; bottom: initial; } - .name-header { + .name-section { text-align: center; } + .name-header { + justify-content: center; + } .sections { padding-left: $sp*0.75; } diff --git a/_tools/frontmatter-validator/schemas/person.json b/_tools/frontmatter-validator/schemas/person.json index f2d0cda..0127d80 100644 --- a/_tools/frontmatter-validator/schemas/person.json +++ b/_tools/frontmatter-validator/schemas/person.json @@ -5,6 +5,9 @@ "title": { "type": "string" }, + "pronouns": { + "type": "string" + }, "updated": { "type": "string", "format": "date-time"