octopress-multilingual 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -3
- data/lib/octopress-multilingual/version.rb +1 -1
- data/lib/octopress-multilingual.rb +22 -19
- 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: cd69e607004166093f5e6ad0a3247cbc5ad1b868
|
4
|
+
data.tar.gz: f47ba000eb17b8e163e8ac1c1a5d58adfacf1da2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc8c341b194f16b009317ffb65408416c78cf9e3d74c94a7a12c63738a2cb6818e4a68b1371406735cea0b98e549f0858523dfab34bc6ade5c3d5aaef940bad1
|
7
|
+
data.tar.gz: c36ecd575234762d8f33b177c49797ec559c16430011d9cc7f5e5319566cd47c9b68cd1ffa7c013350b0b716f6ad6ea81f99ac37c6d7112049077fd285d52780
|
data/CHANGELOG.md
CHANGED
@@ -1,14 +1,18 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
-
### 0.0.
|
3
|
+
### 0.0.5 (2015-01-19)
|
4
|
+
|
5
|
+
- Improved integration with Octopress docs
|
6
|
+
|
7
|
+
### 0.0.4 (2015-01-19)
|
4
8
|
|
5
9
|
- Added support for scoping octopress-linkblog `articles` and `linkposts` loops.
|
6
10
|
|
7
|
-
### 0.0.3 (2015-01-
|
11
|
+
### 0.0.3 (2015-01-19)
|
8
12
|
|
9
13
|
- Renamed tag to `{% set_lang %}`.
|
10
14
|
|
11
|
-
### 0.0.2 (2015-01-
|
15
|
+
### 0.0.2 (2015-01-19)
|
12
16
|
|
13
17
|
- New: `{% post_lang %}` block tag.
|
14
18
|
|
@@ -61,25 +61,28 @@ module Octopress
|
|
61
61
|
def site_payload(site)
|
62
62
|
@site = site
|
63
63
|
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
64
|
+
if defined?(Octopress::Docs) && Octopress::Docs.enabled?
|
65
|
+
{}
|
66
|
+
else
|
67
|
+
return unless main_language
|
68
|
+
|
69
|
+
payload = {
|
70
|
+
'posts' => main_language_posts,
|
71
|
+
'posts_by_language' => posts_by_language,
|
72
|
+
'languages' => languages,
|
73
|
+
'lang' => main_language
|
74
|
+
}
|
75
|
+
|
76
|
+
if defined? Octopress::Linkblog
|
77
|
+
payload.merge!({
|
78
|
+
'linkposts' => linkposts_by_language[main_language],
|
79
|
+
'articles' => articles_by_language[main_language],
|
80
|
+
'linkposts_by_language' => linkposts_by_language,
|
81
|
+
'articles_by_language' => articles_by_language
|
82
|
+
})
|
83
|
+
end
|
84
|
+
payload
|
80
85
|
end
|
81
|
-
|
82
|
-
payload
|
83
86
|
end
|
84
87
|
|
85
88
|
def articles_by_language
|
@@ -175,7 +178,7 @@ if defined? Octopress::Docs
|
|
175
178
|
name: "Octopress Multilingual",
|
176
179
|
gem: "octopress-multilingual",
|
177
180
|
version: Octopress::Multilingual::VERSION,
|
178
|
-
description: "",
|
181
|
+
description: "Add multilingual features to your Jekyll site",
|
179
182
|
path: File.expand_path(File.join(File.dirname(__FILE__), "..")),
|
180
183
|
source_url: "https://github.com/octopress/multilingual"
|
181
184
|
})
|