Merge branch 'master' into master

This commit is contained in:
Kyle Niewiada 2017-02-15 10:00:52 -05:00 committed by GitHub
commit cc02710dbf
2 changed files with 14 additions and 0 deletions

View File

@ -7,6 +7,7 @@
### Minor Enhancements
* Add support for Bing and Yandex webmaster tools. Closes #147 (#148)
* Add author meta (#103)
## 2.1.0

13
lib/template.html Normal file → Executable file
View File

@ -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,6 +113,10 @@
<meta property="og:title" content="{{ seo_page_title }}" />
{% endif %}
{% if seo_author_name %}
<meta name="author" content="{{ seo_author_name }}" />
{% endif %}
{% if seo_description %}
<meta name="description" content="{{ seo_description }}" />
<meta property="og:description" content="{{ seo_description }}" />