From 903f9efab9bdfd2397144b1d18e04643c5646258 Mon Sep 17 00:00:00 2001 From: renshuki Date: Sun, 29 Jan 2017 04:29:17 +0900 Subject: [PATCH] Implement seo_author.name --- lib/template.html | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) mode change 100644 => 100755 lib/template.html 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 %}