Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Commit

Permalink
Merge pull request mmistakes#858 from rsaccani/master
Browse files Browse the repository at this point in the history
meta tag "author" added, for site author the field name is used
  • Loading branch information
makaroniame committed Feb 20, 2017
2 parents 3e6fe56 + 41b08b4 commit 1a4c19f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion _includes/seo.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand All @@ -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 }}">
Expand Down

0 comments on commit 1a4c19f

Please sign in to comment.