Skip to content

Commit

Permalink
Fix SEO author bug
Browse files Browse the repository at this point in the history
- If `twitter.username` is set and `author.twitter` is nil bad things happen.
- Close mmistakes#289
  • Loading branch information
jluccisano committed Feb 12, 2017
1 parent 2c5fdfd commit d13bb65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _includes/seo.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down

0 comments on commit d13bb65

Please sign in to comment.