From ce32f30d3f03ce711c970f2393931c0b6be6cdec Mon Sep 17 00:00:00 2001 From: Andrew Newhouse Date: Mon, 11 Dec 2017 12:37:10 -0500 Subject: [PATCH] Feature: Adding linkback functionality Author avatar & Name (#1386) * adding linkback funct to author avatar & nm * rm author_class; change linkback var to home; updating config docs --- _includes/author-profile.html | 23 ++++++++++++++++++++--- _sass/minimal-mistakes/_sidebar.scss | 5 +++++ 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/_includes/author-profile.html b/_includes/author-profile.html index 55ddae2..99191b6 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 8e7d70b..1b389bd 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 { -- 2.43.0