Skip to content

Commit 2879393

Browse files
authoredFeb 20, 2017
Merge pull request #858 from rsaccani/master
meta tag "author" added, for site author the field name is used
2 parents 6cb699c + c23c6f9 commit 2879393

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎_includes/seo.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

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

28-
{% assign seo_author = page.author | default: page.author[0] | default: site.author[0] %}
28+
{% assign seo_author = page.author | default: page.author[0] | default: site.author.name %}
2929
{% if seo_author %}
3030
{% if seo_author.twitter %}
3131
{% assign seo_author_twitter = seo_author.twitter %}
@@ -39,6 +39,8 @@
3939
{% assign seo_author_twitter = seo_author_twitter | replace: "@", "" %}
4040
{% endif %}
4141

42+
<meta name="author" content="{{ seo_author }}">
43+
4244
<meta property="og:locale" content="{{ site.locale | replace: "-", "_" | default: "en" }}">
4345
<meta property="og:site_name" content="{{ site.title }}">
4446
<meta property="og:title" content="{{ page.title | default: site.title | markdownify | strip_html | strip_newlines | escape_once }}">

0 commit comments

Comments
 (0)
Please sign in to comment.