From 794128dc008d5f717dca61fed904f36acb036843 Mon Sep 17 00:00:00 2001 From: amyzlc <6166519+amyzlc@users.noreply.github.com> Date: Wed, 6 Jul 2022 22:03:49 -0400 Subject: [PATCH] Adding pronouns field to author profile --- _config.yml | 1 + _includes/author-profile.html | 1 + _sass/_sidebar.scss | 9 +++++++++ 3 files changed, 11 insertions(+) diff --git a/_config.yml b/_config.yml index 1dc605cc6e928..d4faae37d56ee 100644 --- a/_config.yml +++ b/_config.yml @@ -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" diff --git a/_includes/author-profile.html b/_includes/author-profile.html index 55449165574f6..14ac280ec2f50 100644 --- a/_includes/author-profile.html +++ b/_includes/author-profile.html @@ -16,6 +16,7 @@

{{ author.name }}

+ {% if author.pronouns %}

{{ author.pronouns }}

{% endif %} {% if author.bio %}

{{ author.bio }}

{% endif %}
diff --git a/_sass/_sidebar.scss b/_sass/_sidebar.scss index 892613568e1c7..734b041d40263 100644 --- a/_sass/_sidebar.scss +++ b/_sass/_sidebar.scss @@ -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;