Skip to content

Commit

Permalink
fix: Remove extraneous name from og:locale (#225)
Browse files Browse the repository at this point in the history
Fixes #224
  • Loading branch information
Jan Bílek authored and paulgv committed Feb 17, 2019
1 parent b187804 commit 9460d27
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
2 changes: 0 additions & 2 deletions src/templates/seo-head.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ export const nuxtI18nSeo = function () {
if (currentLocaleData && currentLocaleData[LOCALE_ISO_KEY]) {
meta.push({
hid: 'og:locale',
name: 'og:locale',
property: 'og:locale',
// Replace dash with underscore as defined in spec: language_TERRITORY
content: currentLocaleData[LOCALE_ISO_KEY].replace(/-/g, '_')
Expand All @@ -69,7 +68,6 @@ export const nuxtI18nSeo = function () {
.filter(l => l[LOCALE_ISO_KEY] && l[LOCALE_ISO_KEY] !== currentLocaleData[LOCALE_ISO_KEY])
.map(locale => ({
hid: 'og:locale:alternate-' + locale[LOCALE_ISO_KEY],
name: 'og:locale:alternate',
property: 'og:locale:alternate',
content: locale[LOCALE_ISO_KEY].replace(/-/g, '_')
}))
Expand Down

0 comments on commit 9460d27

Please sign in to comment.