Skip to content

Commit

Permalink
Add pronouns to person layout (close #5)
Browse files Browse the repository at this point in the history
  • Loading branch information
quincylvania committed Apr 17, 2024
1 parent 19556ef commit b0ebcfa
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 4 deletions.
4 changes: 2 additions & 2 deletions _layouts/person.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
<div class="avatar hero-avatar" role="img" {%- if page.image -%}style="background-image: url('{{page.image | absolute_url}}'), url('{{site.url}}{{site.baseurl}}/assets/avatar.jpg')"{%- endif -%}></div>
</div>
<div>
<div class="section-body name-header">
<h1>{{page.title}}</h1>
<div class="section-body name-section">
<div class="name-header"><h1>{{page.title}}</h1>{%- if page.pronouns -%} <span class="pronouns">{{ page.pronouns }}</span>{%- endif -%}</div>
{%- if page.osm -%}
<a href="https://www.openstreetmap.org/user/{{page.osm}}">@{{page.osm}}</a>
{%- endif -%}
Expand Down
1 change: 1 addition & 0 deletions _people/darla-dogson.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Darla Dogson
pronouns: she/her
image: /img/people/Morisot.jpg
roles:
- title: Team Lead
Expand Down
1 change: 1 addition & 0 deletions _people/walter-woodman.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Walter Woodman
pronouns: he/they
image: /img/people/Renoir.jpg
roles:
- title: Team Lead
Expand Down
16 changes: 14 additions & 2 deletions _sass/dogwood/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}
Expand Down
3 changes: 3 additions & 0 deletions _tools/frontmatter-validator/schemas/person.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"title": {
"type": "string"
},
"pronouns": {
"type": "string"
},
"updated": {
"type": "string",
"format": "date-time"
Expand Down

0 comments on commit b0ebcfa

Please sign in to comment.