octopress-multilingual 0.0.8 → 0.0.9

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: 81d74a15580418e28ebe00dcd4f8a6cb3dcbc67a
4
- data.tar.gz: aa61892cf1e4e764dc77d5eee1a6252f8419637e
3
+ metadata.gz: 93762ea4b72fa9617cb1a1e6517f07c7286bc84f
4
+ data.tar.gz: cec1457c4daaf7614f0baccd33aa100f623e760b
5
5
  SHA512:
6
- metadata.gz: b7c725533664f672619d4ca3a3000098eebbe7a2266d53076c9e233589514cb09d7d3d8a1851b7bd62cd0958474ec74c01d31c7512ca07f6700d10fab12b673b
7
- data.tar.gz: 54dd83d45d96e9b5311da61ba385a4681d939b331b79a124b5573b6084a7d6aed129c315a836bd1b684c0629804e6f93ec6172b6b35efc32cfd8e15e2e60545f
6
+ metadata.gz: 778acd242ccea05e7f555d84e820613a6156b0c41399d2e1c5af0714645b9f687094260511cb59bd5699372f54f946d8db3b82da9527f6e2a99235ebc35f1a95
7
+ data.tar.gz: e74201756fed2707d1a499b1d3d26ea30fe66e4b7f866f6593955bf33d34ab3114f4954b0b7a1a091725c67b83d3585f6ddc36cfa404b7e404f0ec863d892f1b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ### 0.0.9 (2015-01-25)
4
+ - Fix: Language cross-posts are now properly sorted. Thanks @drallgood, via [#6](https://github.com/octopress/multilingual/pull/6).
5
+
3
6
  ### 0.0.8 (2015-01-21)
4
7
  - Fix: on posts, page.next and page.previous follow post language
5
8
 
data/README.md CHANGED
@@ -42,7 +42,7 @@ When adding this plugin to your site, you will need to:
42
42
  2. Add a language to the YAML front-matter of your posts, e.g. `lang: de`.
43
43
  3. Add new RSS feeds and post indexes for secondary languages.
44
44
 
45
- Read on and I'll try to walk you through setting up your multilingual site.
45
+ Read on and I'll try to walk you through setting up your multilingual site.
46
46
 
47
47
  Note: This guide will only cover the steps listed above. Your site may still have some plugins which are not designed for multilingual sites. If you are using plugins (like a category index generator) which create pages from your site's posts, they may need to be modified or removed. Modifying plugins is beyond the scope of this guide.
48
48
 
@@ -61,10 +61,10 @@ For a list of standard language codes, refer to [ISO 639-1](http://en.wikipedia.
61
61
 
62
62
  ## Defining a post's language
63
63
 
64
- Posts should specify their language in the YAML front matter.
64
+ Posts should specify their language in the YAML front matter.
65
65
 
66
66
  ```yaml
67
- title: "Ein Nachdenklich Beitrag"
67
+ title: "Ein nachdenklicher Beitrag"
68
68
  lang: de
69
69
  ```
70
70
 
@@ -81,7 +81,7 @@ This command will set the post language (in the YAML front-matter) and add it to
81
81
  Occasionally you may wish to write a post in a single language and have it show up in other languages indexes and feeds. This can be done in your post's YAML front-matter:
82
82
 
83
83
  ```
84
- title: "Ein Nachdenklich Beitrag"
84
+ title: "Ein nachdenklicher Beitrag"
85
85
  lang: de
86
86
  crosspost_languages: true
87
87
  ```
@@ -126,15 +126,15 @@ Using the `set_lang` liquid block, you can temporarily switch languages while re
126
126
 
127
127
  ```
128
128
  {{ site.lang }} # => 'en'
129
- {{ site.posts }} # => English posts
129
+ {{ site.posts }} # => English posts
130
130
 
131
131
  {% set_lang de %}
132
132
  {{ site.lang }} # => 'de'
133
- {{ site.posts }} # => German posts
133
+ {{ site.posts }} # => German posts
134
134
  {% endset_lang %}
135
135
 
136
136
  {{ site.lang }} # => 'en'
137
- {{ site.posts }} # => English posts
137
+ {{ site.posts }} # => English posts
138
138
  ```
139
139
 
140
140
  If you have the [octopress-linkblog](https://github.com/octopress/linkblog) plugin installed, this will also change scope for your
@@ -27,7 +27,7 @@ module Octopress
27
27
  ## Add posts that crosspost to all languages
28
28
  .each do |lang, posts|
29
29
  if lang != main_language
30
- posts.concat(crossposts).sort_by(&:date).reverse
30
+ posts.concat(crossposts).sort_by!(&:date).reverse!
31
31
  end
32
32
  end
33
33
 
@@ -1,5 +1,5 @@
1
1
  module Octopress
2
2
  module Multilingual
3
- VERSION = "0.0.8"
3
+ VERSION = "0.0.9"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octopress-multilingual
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-23 00:00:00.000000000 Z
11
+ date: 2015-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octopress-hooks