octopress-multilingual 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/octopress-multilingual/hooks.rb +6 -0
- data/lib/octopress-multilingual/jekyll.rb +0 -3
- data/lib/octopress-multilingual/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e53c8c656e02f71a493c1e79cd8765dfbeafc2ae
|
4
|
+
data.tar.gz: 1aa1a62b8dce6b50647d1a1a646adf64986a8353
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cadc57ee19e7ed3f90e57ecd3497720e5fcf0309c0b136bc119852af329d1fccebe2437c4fcd64b216a48464bafe6924d0730cd9b6b3dcff4997ccedbcb79d5b
|
7
|
+
data.tar.gz: fa6d4745b493a0060fa8eb5708ae4d75457843bdfc6a9a617df546982764217c90f5aacb46d4db5e28a3de81ce4115ea6c57460067d433405827da70a9106c20
|
data/CHANGELOG.md
CHANGED
@@ -22,6 +22,12 @@ module Octopress
|
|
22
22
|
class PagePayloadHook < Hooks::All
|
23
23
|
priority :high
|
24
24
|
|
25
|
+
def post_init(item)
|
26
|
+
if item.lang == 'default'
|
27
|
+
item.data['lang'] = item.site.config['lang']
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
25
31
|
# Swap out post arrays with posts of the approrpiate language
|
26
32
|
#
|
27
33
|
def merge_payload(payload, item)
|