Skip to content

Commit

Permalink
Adding pronouns field to author profile
Browse files Browse the repository at this point in the history
  • Loading branch information
amyzlc authored Jul 7, 2022
1 parent 25c30de commit 794128d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ author:
name : "Your Sidebar Name"
avatar : "profile.png"
bio : "Your biography for the left-hand sidebar"
pronouns : # example: "she/her"
location : "Location"
employer :
pubmed : "https://www.ncbi.nlm.nih.gov/pubmed/?term=john+snow"
Expand Down
1 change: 1 addition & 0 deletions _includes/author-profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

<div class="author__content">
<h3 class="author__name">{{ author.name }}</h3>
{% if author.pronouns %}<p class="author__pronouns">{{ author.pronouns }}</p>{% endif %}
{% if author.bio %}<p class="author__bio">{{ author.bio }}</p>{% endif %}
</div>

Expand Down
9 changes: 9 additions & 0 deletions _sass/_sidebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,15 @@
font-size: $type-size-5;
}

.author__pronouns {
margin: 0;

@include breakpoint($large) {
margin-top: 10px;
margin-bottom: 10px;
}
}

.author__bio {
margin: 0;

Expand Down

0 comments on commit 794128d

Please sign in to comment.