diff --git a/_includes/author-profile.html b/_includes/author-profile.html index 55ddae2087f8..99191b6b4012 100644 --- a/_includes/author-profile.html +++ b/_includes/author-profile.html @@ -9,15 +9,32 @@ {% if author.avatar %}
{% if author.avatar contains "://" %} - {{ author.name }} + {% assign author_src = author.avatar %} {% else %} - {{ author.name }} + {% assign author_src = author.avatar | absolute_url %} + {% endif %} + + {% if author.home %} + {% if author.home contains "://" %} + {% assign author_link = author.home %} + {% else %} + {% assign author_link = author.home | absolute_url %} + {% endif %} + + {{ author.name }} + + {% else %} + {{ author.name }} {% endif %}
{% endif %}
-

{{ author.name }}

+ {% if author.home %} +

{{ author.name }}

+ {% else %} +

{{ author.name }}

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

{{ author.bio }} diff --git a/_sass/minimal-mistakes/_sidebar.scss b/_sass/minimal-mistakes/_sidebar.scss index 8e7d70b5bdf9..1b389bd313f9 100644 --- a/_sass/minimal-mistakes/_sidebar.scss +++ b/_sass/minimal-mistakes/_sidebar.scss @@ -128,6 +128,11 @@ padding-left: 0; padding-right: 0; } + + a { + color: inherit; + text-decoration: none; + } } .author__name { diff --git a/docs/_docs/05-configuration.md b/docs/_docs/05-configuration.md index c59bb836b2ad..3e0719245cf7 100644 --- a/docs/_docs/05-configuration.md +++ b/docs/_docs/05-configuration.md @@ -646,6 +646,7 @@ author: bio : "My awesome biography constrained to a sentence or two goes here." email : # optional uri : "http://your-site.com" + home : # null (default), "absolute or relative url to link to author home" ``` Social media links are all optional, include the ones you want visible. In most cases you just need to add the username. If you're unsure double check `_includes/author-profile.html` to see how the URL is constructed.