From 81c9bc8fa4fd93e73ba5ca00ff137db9e7cce86d Mon Sep 17 00:00:00 2001 From: renshuki Date: Sun, 31 Jul 2016 17:39:02 +0900 Subject: [PATCH 1/2] 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/2] 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 %}