jekyll-locales 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/jekyll/locales/site.rb +11 -5
- data/lib/jekyll/locales/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e1e9d8ecdf4cc772d076592e186830a038f6efde890bf3df4fc0fba88ccf840
|
4
|
+
data.tar.gz: 7c0f9126b109040cbf0629209103651ee34974dd72f1bd47b9eac995b666c567
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db58ab601603d7fb0571e7932f092b62df6949d5956278f35554e72732351f6eeb9a03e80083debb5651faad30f39e8933e43f017ae19fae71196a539b06219b
|
7
|
+
data.tar.gz: 265e7024461aa7001bece672057fcb899947b11c07c7a43102b1955fa55e2ddb375405ff01b6e07a98e93bbf445b54cddb3ffc51afad019e98a07e39aca8fffc
|
data/Gemfile.lock
CHANGED
data/lib/jekyll/locales/site.rb
CHANGED
@@ -30,11 +30,13 @@ module Jekyll
|
|
30
30
|
process_single
|
31
31
|
end
|
32
32
|
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
33
|
+
if locales?
|
34
|
+
copy_redirector
|
35
|
+
default_delete
|
36
|
+
default_symlink
|
37
|
+
else
|
38
|
+
self_symlink
|
39
|
+
end
|
38
40
|
end
|
39
41
|
|
40
42
|
private
|
@@ -120,5 +122,9 @@ module Jekyll
|
|
120
122
|
def default_symlink
|
121
123
|
FileUtils.ln_s(default_locale, default_destination)
|
122
124
|
end
|
125
|
+
|
126
|
+
def self_symlink
|
127
|
+
FileUtils.ln_s('.', locale_destination)
|
128
|
+
end
|
123
129
|
end
|
124
130
|
end
|