Fix SEO author bug
- If `twitter.username` is set and `author.twitter` is nil bad things happen. - Close #289
This commit is contained in:
parent
5c8506088c
commit
b459af2120
1 changed files with 1 additions and 1 deletions
|
@ -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 %}
|
||||
|
|
Loading…
Reference in a new issue