From 81c9bc8fa4fd93e73ba5ca00ff137db9e7cce86d Mon Sep 17 00:00:00 2001 From: renshuki Date: Sun, 31 Jul 2016 17:39:02 +0900 Subject: [PATCH 1/3] Add author meta --- lib/template.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/template.html b/lib/template.html index 1c9f3ea..6fd0371 100644 --- a/lib/template.html +++ b/lib/template.html @@ -104,6 +104,10 @@ {% endif %} +{% if seo_author %} + +{% endif %} + {% if seo_description %} From 903f9efab9bdfd2397144b1d18e04643c5646258 Mon Sep 17 00:00:00 2001 From: renshuki Date: Sun, 29 Jan 2017 04:29:17 +0900 Subject: [PATCH 2/3] 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 %} From 7a55ccd04d331da7ec1d26a9ee6c57fe4eadfdaf Mon Sep 17 00:00:00 2001 From: Ben Balter Date: Mon, 13 Feb 2017 10:07:16 -0500 Subject: [PATCH 3/3] Update history to reflect merge of #103 --- History.markdown | 1 + 1 file changed, 1 insertion(+) diff --git a/History.markdown b/History.markdown index 1029e32..4b684a2 100644 --- a/History.markdown +++ b/History.markdown @@ -7,6 +7,7 @@ ### Minor Enhancements * Add support for Bing and Yandex webmaster tools. Closes #147 (#148) + * Add author meta (#103) ## 2.1.0