diff --git a/templates/author.html b/templates/author.html index 50f8865..eb1bd1f 100644 --- a/templates/author.html +++ b/templates/author.html @@ -2,6 +2,18 @@ {% block title %}{{ SITENAME }} - Articles by {{ author }}{% endblock %} + +{% if AUTHORS_BIO and author.name.lower() in AUTHORS_BIO %} + {% set author_avatar = AUTHORS_BIO[author.name.lower()].image %} + {% if author_avatar %} + {% if author_avatar|lower|truncate(4, True, '') == "http" %} + {% set author_avatar = author_avatar %} + {% else %} + {% set author_avatar = SITEURL+"/"+author_avatar %} + {% endif %} + {% endif %} +{% endif %} + {% block opengraph %} {{ super() }} @@ -30,7 +42,11 @@ Menu - {% if HEADER_COVER %} + {% if AUTHORS_BIO and author.name.lower() in AUTHORS_BIO %} + {% if author_avatar %} +