~xdavidwu/xdavidwu.link

901fb19bed59fd3cecaddb1ceeea23101d7c4373 — Michael Rose 7 years ago 0f74c1f + bc068c7
Merge pull request #858 from rsaccani/master

meta tag "author" added, for site author the field name is used
1 files changed, 3 insertions(+), 1 deletions(-)

M _includes/seo.html
M _includes/seo.html => _includes/seo.html +3 -1
@@ 25,7 25,7 @@

<meta name="description" content="{{ seo_description }}">

{% assign seo_author = page.author | default: page.author[0] | default: site.author[0] %}
{% assign seo_author = page.author | default: page.author[0] | default: site.author.name %}
{% if seo_author %}
  {% if seo_author.twitter %}
    {% assign seo_author_twitter = seo_author.twitter %}


@@ 39,6 39,8 @@
  {% assign seo_author_twitter = seo_author_twitter | replace: "@", "" %}
{% endif %}

<meta name="author" content="{{ seo_author }}">

<meta property="og:locale" content="{{ site.locale | replace: "-", "_" | default: "en" }}">
<meta property="og:site_name" content="{{ site.title }}">
<meta property="og:title" content="{{ page.title | default: site.title | markdownify | strip_html | strip_newlines | escape_once }}">