mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-28 00:40:07 +02:00
Requested changes - removed underscore and sorted out duplicates in locales
This commit is contained in:
parent
89f3a5177b
commit
9d14feb1b3
2 changed files with 6 additions and 5 deletions
|
@ -1,7 +1,6 @@
|
|||
var Backbone = require('backbone');
|
||||
var EventEmitter = require('events').EventEmitter;
|
||||
var React = require('react');
|
||||
var _ = require('underscore');
|
||||
|
||||
var assign = require('object-assign');
|
||||
var util = require('../util');
|
||||
|
@ -93,7 +92,8 @@ var insertAlternateLinks = function(pageId) {
|
|||
|
||||
// The value of the hreflang attribute identifies the language (in ISO 639-1 format)
|
||||
// and optionally a region (in ISO 3166-1 Alpha 2 format) of an alternate URL
|
||||
var altLinks = _.map(LocaleStore.getSupportedLocales(), function(langCode) {
|
||||
|
||||
var altLinks = LocaleStore.getSupportedLocales().map(function(langCode) {
|
||||
var url = "https://learngitbranching.js.org/?locale=" + langCode;
|
||||
return '<link rel="alternate" hreflang="'+langCode+'" href="' + url +'" />';
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue