jekyll-polyglot 1.5.0 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/README.md +11 -5
- data/lib/jekyll/polyglot/patches/jekyll/site.rb +2 -2
- metadata +6 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 575ea909b15958d5cddafc881fb4342326f205bf9fafbce8a79981133c4a15e5
|
4
|
+
data.tar.gz: 1e881bdd502d11c0b3c171b7a4db7670d314f32ea0fe192a9a3fffbd47b1e1c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15cd5d7b397550143957d9ebf7404c35c241bf4357f75f6fa7f44bde56034d631a3ea6ee0e7e3d80a53a9f8abcb99a5ee5b8685d125b63e08369db9cae28c1d7
|
7
|
+
data.tar.gz: f837a8c341809322d210a90098d9016d6303865a665a832abf38443912f61c969a1e5c08dc4b2206f0ef47712ce24e208202b6c46e2d34ceaa1066c6ff19aeef
|
data/LICENSE
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
Copyright (c) 2015 -
|
1
|
+
Copyright (c) 2015 - 2022 Samuel Volin
|
2
2
|
|
3
3
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
4
4
|
|
data/README.md
CHANGED
@@ -112,7 +112,11 @@ becomes
|
|
112
112
|
|
113
113
|
#### Disabling Url Relativizing
|
114
114
|
_New in 1.4.0_
|
115
|
-
If you dont want a href attribute to be relativized (such as for making [a language switcher](https://github.com/untra/polyglot/blob/master/site/_includes/sidebar.html#L40)), you can use the
|
115
|
+
If you dont want a href attribute to be relativized (such as for making [a language switcher](https://github.com/untra/polyglot/blob/master/site/_includes/sidebar.html#L40)), you can use the block tag:
|
116
|
+
|
117
|
+
```html
|
118
|
+
{% static_href %}href="..."{% endstatic_href %}
|
119
|
+
```
|
116
120
|
|
117
121
|
```html
|
118
122
|
<a {% static_href %}href="/about"{% endstatic_href %}>click this static link</a>
|
@@ -138,7 +142,7 @@ lang-exclusive: ['en', 'fr']
|
|
138
142
|
#### Machine-aware site building
|
139
143
|
_New in 1.5.0_
|
140
144
|
|
141
|
-
Polyglot will only start builds after it confirms there is a cpu core ready to accept the build thread. This ensures that
|
145
|
+
Polyglot will only start builds after it confirms there is a cpu core ready to accept the build thread. This ensures that jekyll will build large sites efficiently streamlining build processes instead of overloading machines with process thrash.
|
142
146
|
|
143
147
|
#### Localized site.data
|
144
148
|
|
@@ -159,7 +163,7 @@ This plugin stands out from other I18n Jekyll plugins.
|
|
159
163
|
- provides the liquid tag `{{ site.default_lang }}` to get the default_lang I18n string.
|
160
164
|
- provides the liquid tag `{{ site.active_lang }}` to get the I18n language string the website was built for. Alternative names for `active_lang` can be configured via `config.lang_vars`.
|
161
165
|
- provides the liquid tag `{{ I18n_Headers https://yourwebsite.com/ }}` to append SEO bonuses to your website.
|
162
|
-
- provides the liquid tag `{{ Unrelativized_Link href="/hello" }}` to make urls that do not get influenced by url correction
|
166
|
+
- provides the liquid tag `{{ Unrelativized_Link href="/hello" }}` to make urls that do not get influenced by url correction regexes.
|
163
167
|
- provides `site.data` localization for efficient rich text replacement.
|
164
168
|
- a creator that will answer all of your questions and issues.
|
165
169
|
|
@@ -175,6 +179,7 @@ Feel free to open a PR and list your multilingual blog here you may want to shar
|
|
175
179
|
* [Hanare Cafe in Toshijima, Japan](https://hanarecafe.com)
|
176
180
|
* [F-Droid](https://f-droid.org)
|
177
181
|
* [Ubuntu MATE](https://ubuntu-mate.org)
|
182
|
+
* [Leo3418 blog](https://leo3418.github.io/)
|
178
183
|
|
179
184
|
## Compatibility
|
180
185
|
Currently supports Jekyll 3.0 , and Jekyll 4.0
|
@@ -198,10 +203,11 @@ If you have something you'd like to contribute to jekyll-polyglot, please open a
|
|
198
203
|
* [ ] - **site language**: arabic `ar`
|
199
204
|
* [ ] - **site language**: japanese `ja`
|
200
205
|
* [x] - **site language**: russian `ru`
|
206
|
+
* [x] - **site language**: dutch `nl`
|
201
207
|
* [ ] - **site language**: korean `ko`
|
202
|
-
* [
|
208
|
+
* [x] - **site language**: hebrew `he`
|
203
209
|
* [ ] - get whitelisted as an official github-pages jekyll plugin
|
204
210
|
* [x] - update CI provider
|
205
211
|
|
206
212
|
## Copyright
|
207
|
-
Copyright (c) Samuel Volin
|
213
|
+
Copyright (c) Samuel Volin 2022. License: MIT
|
@@ -190,7 +190,7 @@ module Jekyll
|
|
190
190
|
end
|
191
191
|
end
|
192
192
|
start = disabled ? 'ferh' : 'href'
|
193
|
-
%r{#{start}=\"?#{@baseurl}\/((?:#{regex}[^,'\"\s
|
193
|
+
%r{#{start}=\"?#{@baseurl}\/((?:#{regex}[^,'\"\s\/?\.]+\.?)*(?:\/[^\]\[\)\(\"\'\s]*)?)\"}
|
194
194
|
end
|
195
195
|
|
196
196
|
# a regex that matches absolute urls in a html document
|
@@ -208,7 +208,7 @@ module Jekyll
|
|
208
208
|
end
|
209
209
|
end
|
210
210
|
start = disabled ? 'ferh' : 'href'
|
211
|
-
%r{(?<!hreflang="#{@default_lang}" )#{start}=\"?#{url}#{@baseurl}\/((?:#{regex}[^,'\"\s
|
211
|
+
%r{(?<!hreflang="#{@default_lang}" )#{start}=\"?#{url}#{@baseurl}\/((?:#{regex}[^,'\"\s\/?\.]+\.?)*(?:\/[^\]\[\)\(\"\'\s]*)?)\"}
|
212
212
|
end
|
213
213
|
|
214
214
|
def relativize_urls(doc, regex)
|
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.5.
|
4
|
+
version: 1.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Volin
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -49,7 +49,7 @@ homepage: https://polyglot.untra.io/
|
|
49
49
|
licenses:
|
50
50
|
- MIT
|
51
51
|
metadata: {}
|
52
|
-
post_install_message:
|
52
|
+
post_install_message:
|
53
53
|
rdoc_options: []
|
54
54
|
require_paths:
|
55
55
|
- lib
|
@@ -64,9 +64,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
64
64
|
- !ruby/object:Gem::Version
|
65
65
|
version: 2.7.0
|
66
66
|
requirements: []
|
67
|
-
|
68
|
-
|
69
|
-
signing_key:
|
67
|
+
rubygems_version: 3.3.7
|
68
|
+
signing_key:
|
70
69
|
specification_version: 4
|
71
70
|
summary: I18n plugin for Jekyll Blogs
|
72
71
|
test_files: []
|