jekyll-polyglot 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -4
- data/lib/jekyll/polyglot/liquid/tags/i18n-headers.rb +2 -2
- data/lib/jekyll/polyglot/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ef2e09c9f5884d0093bef2c8d97b756297a4842
|
4
|
+
data.tar.gz: 7813f910f0ac8679f1c64e6b3c65130d8a9a9beb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a828887248c4bd3673429193223ac91ccdb046cd0369df470ba1a973382e88a9e9a98a53407bc67a6ac8975719a0a4bc1eb85df84a4bc94ba8c6a3cd78adfe57
|
7
|
+
data.tar.gz: 9195927833fd833472aaa04671ad48ee812d2e8febb27e421deddd87a8a19c9cd9d93657df95a5259fcf6df657d8cc17ad620ce02264fa3fe6a1990436b64de4
|
data/README.md
CHANGED
@@ -150,12 +150,9 @@ This plugin stands out from other I18n Jekyll plugins.
|
|
150
150
|
## SEO Recipes
|
151
151
|
Jekyll-polyglot has a few spectacular [Search Engine Optimization techniques](https://untra.github.io/polyglot/seo) to ensure your Jekyll blog gets the most out of it's multilingual audience. Check them out!
|
152
152
|
|
153
|
-
## Examples
|
154
|
-
Check out the example project website [here](https://untra.github.io/polyglot)
|
155
|
-
(Jekyll resources are on the project's [site](https://github.com/untra/polyglot/tree/master/site) directory)
|
156
|
-
|
157
153
|
### Other Websites Built with Polyglot
|
158
154
|
let us know if you make a multilingual blog you want to share:
|
155
|
+
* [Polyglot example project website](http://polyglot.untra.io)
|
159
156
|
* [LogRhythm Corporate Website](http://logrhythm.com)
|
160
157
|
* [All Over Earth](https://allover.earth/)
|
161
158
|
|
@@ -14,11 +14,11 @@ module Jekyll
|
|
14
14
|
permalink = context.registers[:page]['permalink']
|
15
15
|
site_url = @url.empty? ? site.config['url'] : @url
|
16
16
|
i18n = "<meta http-equiv=\"Content-Language\" content=\"#{site.active_lang}\">\n"
|
17
|
-
i18n += "<link rel=\"alternate\"
|
17
|
+
i18n += "<link rel=\"alternate\" hreflang=\"#{site.default_lang}\" "\
|
18
18
|
"href=\" #{site_url}#{permalink}\"/>\n"
|
19
19
|
site.languages.each do |lang|
|
20
20
|
next if lang == site.default_lang
|
21
|
-
i18n += "<link rel=\"alternate\"
|
21
|
+
i18n += "<link rel=\"alternate\" hreflang=\"#{lang}\" "\
|
22
22
|
"href=\"#{site_url}/#{lang}#{permalink}\"/>\n"
|
23
23
|
end
|
24
24
|
i18n
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-polyglot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Volin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-09-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|