From b459af212030d903b21ebc95b5fb180d23e4622f Mon Sep 17 00:00:00 2001 From: Michael Rose Date: Wed, 27 Apr 2016 10:19:00 -0400 Subject: [PATCH] Fix SEO author bug - If `twitter.username` is set and `author.twitter` is nil bad things happen. - Close #289 --- _includes/seo.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_includes/seo.html b/_includes/seo.html index d7068f18..f914ce36 100644 --- a/_includes/seo.html +++ b/_includes/seo.html @@ -25,7 +25,7 @@ {% assign seo_description = seo_description | markdownify | strip_html | strip_newlines | escape_once %} {% endif %} -{% assign seo_author = page.author | default: page.authors[0] | default: site.author %} +{% assign seo_author = page.author | default: page.author[0] | default: site.author[0] %} {% if seo_author %} {% if seo_author.twitter %} {% assign seo_author_twitter = seo_author.twitter %}