Added support for locale exposure as `og:locale`
This commit is contained in:
parent
4aedc4f7e3
commit
308cf7a523
|
@ -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 }}" />
|
||||
|
|
Loading…
Reference in New Issue