Skip to content

Commit

Permalink
Merge pull request #968 from amyzlc/patch-1
Browse files Browse the repository at this point in the history
Adding pronouns field to author profile
  • Loading branch information
rjzupkoii authored Feb 14, 2024
2 parents 1aef8d5 + 794128d commit aa9ed61
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 aa9ed61

Please sign in to comment.