Added support for locale exposure as `og:locale`

This commit is contained in:
Aaron Gustafson 2017-03-31 14:19:37 -04:00
parent 4aedc4f7e3
commit 308cf7a523
1 changed files with 8 additions and 0 deletions

View File

@ -97,6 +97,10 @@
{% assign seo_page_image = seo_page_image | escape %}
{% endif %}
{% if site.locale %}
{% assign seo_page_locale = page.locale | default: site.locale %}
{% endif %}
{% if seo_tag.title and seo_title %}
<title>{{ seo_title }}</title>
{% endif %}
@ -109,6 +113,10 @@
<meta name="author" content="{{ seo_author_name }}" />
{% endif %}
{% if seo_page_locale %}
<meta name="og:locale" content="{{ seo_page_locale }}" />
{% endif %}
{% if seo_description %}
<meta name="description" content="{{ seo_description }}" />
<meta property="og:description" content="{{ seo_description }}" />