Skip to content

Commit b1e9a19

Browse files
authored
Merge pull request academicpages#968 from amyzlc/patch-1
Adding pronouns field to author profile
2 parents 2d3172f + 3b9f5ae commit b1e9a19

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

_config.yml

+1
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ author:
8383
name : "Your Sidebar Name"
8484
avatar : "profile.png"
8585
bio : "Your biography for the left-hand sidebar"
86+
pronouns : # example: "she/her"
8687
location : "Location"
8788
employer :
8889
pubmed : "https://www.ncbi.nlm.nih.gov/pubmed/?term=john+snow"

_includes/author-profile.html

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
<div class="author__content">
1818
<h3 class="author__name">{{ author.name }}</h3>
19+
{% if author.pronouns %}<p class="author__pronouns">{{ author.pronouns }}</p>{% endif %}
1920
{% if author.bio %}<p class="author__bio">{{ author.bio }}</p>{% endif %}
2021
</div>
2122

_sass/_sidebar.scss

+9
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,15 @@
121121
font-size: $type-size-5;
122122
}
123123

124+
.author__pronouns {
125+
margin: 0;
126+
127+
@include breakpoint($large) {
128+
margin-top: 10px;
129+
margin-bottom: 10px;
130+
}
131+
}
132+
124133
.author__bio {
125134
margin: 0;
126135

0 commit comments

Comments
 (0)