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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ce87f2f55eaed0f5b3a9fe806e1dab7d4a07c870
4
- data.tar.gz: 6387312bed51e706a7d9fd1fce1bdf25438874bb
3
+ metadata.gz: cd69e607004166093f5e6ad0a3247cbc5ad1b868
4
+ data.tar.gz: f47ba000eb17b8e163e8ac1c1a5d58adfacf1da2
5
5
  SHA512:
6
- metadata.gz: 7c026837759184448beff5307f3d3b69bca69ea6487d38b5d567267de55794aa2aa454e39e308b415e3341cdfa4eaccb1e1149fd5f960920ff73a029a479336c
7
- data.tar.gz: 33eea004f47c2a1012921e4fd3ed002f5412344cbadee9b7173fa651916760ad0caa143e54d1582451c764dcec9308698c2faeeee8f58fc4bc2d4e7da622d794
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.4 (2015-01-18)
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-18)
11
+ ### 0.0.3 (2015-01-19)
8
12
 
9
13
  - Renamed tag to `{% set_lang %}`.
10
14
 
11
- ### 0.0.2 (2015-01-18)
15
+ ### 0.0.2 (2015-01-19)
12
16
 
13
17
  - New: `{% post_lang %}` block tag.
14
18
 
@@ -1,5 +1,5 @@
1
1
  module Octopress
2
2
  module Multilingual
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
  end
5
5
  end
@@ -61,25 +61,28 @@ module Octopress
61
61
  def site_payload(site)
62
62
  @site = site
63
63
 
64
- return unless main_language
65
-
66
- payload = {
67
- 'posts' => main_language_posts,
68
- 'posts_by_language' => posts_by_language,
69
- 'languages' => languages,
70
- 'lang' => main_language
71
- }
72
-
73
- if defined? Octopress::Linkblog
74
- payload.merge!({
75
- 'linkposts' => linkposts_by_language[main_language],
76
- 'articles' => articles_by_language[main_language],
77
- 'linkposts_by_language' => linkposts_by_language,
78
- 'articles_by_language' => articles_by_language
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
  })
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octopress-multilingual
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis