Merge branch 'renshuki-master'

This commit is contained in:
Ben Balter 2017-02-13 10:05:56 -05:00
commit 0acae1650a
No known key found for this signature in database
GPG Key ID: DBB67C246AD356C4
1 changed files with 13 additions and 0 deletions

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 }}" />