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 +4 -4
- data/CHANGELOG.md +3 -0
- data/README.md +7 -7
- data/lib/octopress-multilingual.rb +1 -1
- data/lib/octopress-multilingual/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 93762ea4b72fa9617cb1a1e6517f07c7286bc84f
|
4
|
+
data.tar.gz: cec1457c4daaf7614f0baccd33aa100f623e760b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
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
|
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.
|
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-
|
11
|
+
date: 2015-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: octopress-hooks
|