diff --git a/lib/template.html b/lib/template.html old mode 100644 new mode 100755 index 6fd0371..3885dd9 --- a/lib/template.html +++ b/lib/template.html @@ -52,6 +52,15 @@ {% assign seo_author = page.author | default: page.authors[0] | default: site.author %} {% if seo_author %} + {% if seo_author.name %} + {% assign seo_author_name = seo_author.name %} + {% else %} + {% if site.data.authors and site.data.authors[seo_author] %} + {% assign seo_author_name = site.data.authors[seo_author].name %} + {% else %} + {% assign seo_author_name = seo_author %} + {% endif %} + {% endif %} {% if seo_author.twitter %} {% assign seo_author_twitter = seo_author.twitter %} {% else %} @@ -104,8 +113,8 @@ {% endif %} -{% if seo_author %} - +{% if seo_author_name %} + {% endif %} {% if seo_description %}