-
+
{% if AUTHORS_BIO[author.name.lower()].bio %}
{{AUTHORS_BIO[author.name.lower()].bio}}
{% endif %}
diff --git a/templates/author.html b/templates/author.html
index eb1bd1f..4a53733 100644
--- a/templates/author.html
+++ b/templates/author.html
@@ -1,19 +1,27 @@
{% extends "index.html" %}
-{% block title %}{{ SITENAME }} - Articles by {{ author }}{% endblock %}
-
+{% set author_name = author.name | title %}
{% 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 %}
+ {% if author_avatar %}
+ {% if author_avatar|lower|truncate(4, True, '') != "http" %}
{% set author_avatar = SITEURL+"/"+author_avatar %}
{% endif %}
{% endif %}
+
+ {% set author_cover = AUTHORS_BIO[author.name.lower()].cover %}
+ {% if author_cover %}
+ {% if author_cover|lower|truncate(4, True, '') != "http" %}
+ {% set author_cover= SITEURL+"/"+author_cover %}
+ {% endif %}
+ {% endif %}
+
+ {% set author_name = AUTHORS_BIO[author.name.lower()].name or author.name %}
{% endif %}
+{% block title %}{{ SITENAME }} - Articles by {{ author_name }}{% endblock %}
+
{% block opengraph %}
{{ super() }}
@@ -42,10 +50,8 @@
- {% if AUTHORS_BIO and author.name.lower() in AUTHORS_BIO %}
- {% if author_avatar %}
-
- {% endif %}
+ {% if AUTHORS_BIO and author.name.lower() in AUTHORS_BIO and author_cover %}
+
{% elif HEADER_COVER %}
{% elif HEADER_COLOR %}
@@ -62,11 +68,11 @@