formats og:locale tag with underscores (#465)

See http://fbdevwiki.com/wiki/Locales
This commit is contained in:
Ryan Carpenter 2016-08-22 11:25:41 +08:00 committed by Michael Rose
parent 06a8249a69
commit c4d71dbea7

View file

@ -39,7 +39,7 @@
{% assign seo_author_twitter = seo_author_twitter | replace: "@", "" %} {% assign seo_author_twitter = seo_author_twitter | replace: "@", "" %}
{% endif %} {% endif %}
<meta property="og:locale" content="{{ site.locale | default: "en" }}"> <meta property="og:locale" content="{{ site.locale | replace: "-", "_" | default: "en" }}">
<meta property="og:site_name" content="{{ site.title }}"> <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 }}"> <meta property="og:title" content="{{ page.title | default: site.title | markdownify | strip_html | strip_newlines | escape_once }}">