jekyll-polyglot 1.8.0 → 1.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -1
- data/lib/jekyll/polyglot/liquid/tags/i18n_headers.rb +1 -1
- data/lib/jekyll/polyglot/patches/jekyll/site.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d73df8783960d5b0262535d61bf824f185df2eb4d0c81e80ac37d2bb883cd4d
|
4
|
+
data.tar.gz: 25478bc7da36ccf7771fd4eb32028d6ca54dee9d16254b88e883b1a8a797e861
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2878206ca521985036740435fbf098c3d1b8570f4d54e8e16981356e5e1400e23c68b261b1bf0310bf700f20e738fccbc589773a8cb0d81129477529076f3f57
|
7
|
+
data.tar.gz: 72bafd7617f5642c80d22522789d62670e453982dcb1b35df8cc9f9f514e5134ccad143cdb57ce8a6275648c0fa8271d157aa62159103ac071602d5a85df17bf
|
data/README.md
CHANGED
@@ -291,7 +291,9 @@ If you have something you'd like to contribute to jekyll-polyglot, please open a
|
|
291
291
|
These are talented and considerate software developers across the world that have lent their support to this project.
|
292
292
|
**Thank You! ¡Gracias! Merci! Danke! 감사합니다! תודה רבה! Спасибо! Dankjewel! 谢谢!Obrigado!**
|
293
293
|
|
294
|
-
* [@
|
294
|
+
* [@blackpill](https://github.com/blackpill) [1.8.1](https://polyglot.untra.io/2024/08/18/polyglot-1.8.1/)
|
295
|
+
* [@hacketiwack](https://github.com/hacketiwack) [1.8.1](https://polyglot.untra.io/2024/08/18/polyglot-1.8.1/)
|
296
|
+
* [@jerturowetz](https://github.com/jerturowetz) [sitemap generation](https://polyglot.untra.io/2024/03/17/polyglot-1.8.0/)
|
295
297
|
* [@antoniovazquezblanco](https://github.com/antoniovazquezblanco) [1.7.0](https://polyglot.untra.io/2023/10/29/polyglot-1.7.0/)
|
296
298
|
* [@salinatedcoffee](https://github.com/SalinatedCoffee) [ko support](https://polyglot.untra.io/2023/02/27/korean-support/)
|
297
299
|
* [@aturret](https://github.com/aturret) [zh-CN support](https://polyglot.untra.io/2023/06/08/polyglot-1.6.0-chinese-support/)
|
@@ -16,7 +16,7 @@ module Jekyll
|
|
16
16
|
site_url = @url.empty? ? site.config['url'] : @url
|
17
17
|
i18n = "<meta http-equiv=\"Content-Language\" content=\"#{site.active_lang}\">\n"
|
18
18
|
i18n += "<link rel=\"alternate\" hreflang=\"#{site.default_lang}\" "\
|
19
|
-
"href=\"#{site_url}
|
19
|
+
"href=\"#{site_url}/#{permalink}\"/>\n"
|
20
20
|
site.languages.each do |lang|
|
21
21
|
next if lang == site.default_lang
|
22
22
|
|
@@ -138,7 +138,7 @@ module Jekyll
|
|
138
138
|
lang_exclusive = doc.data['lang-exclusive'] || []
|
139
139
|
url = doc.url.gsub(regex, '/')
|
140
140
|
page_id = doc.data['page_id'] || url
|
141
|
-
doc.data['permalink'] = url
|
141
|
+
doc.data['permalink'] = url if doc.data['permalink'].to_s.empty? && !doc.data['lang'].to_s.empty?
|
142
142
|
|
143
143
|
# skip entirely if nothing to check
|
144
144
|
next if @file_langs.nil?
|
@@ -185,7 +185,7 @@ module Jekyll
|
|
185
185
|
end
|
186
186
|
end
|
187
187
|
|
188
|
-
# performs any
|
188
|
+
# performs any necessary operations on the documents before rendering them
|
189
189
|
def process_documents(docs)
|
190
190
|
# return if @active_lang == @default_lang
|
191
191
|
|
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.8.
|
4
|
+
version: 1.8.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: 2024-
|
11
|
+
date: 2024-08-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -63,7 +63,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
63
63
|
requirements:
|
64
64
|
- - ">="
|
65
65
|
- !ruby/object:Gem::Version
|
66
|
-
version: 2.
|
66
|
+
version: 2.7.0
|
67
67
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
68
68
|
requirements:
|
69
69
|
- - ">="
|