octopress-feeds 1.3.0 → 1.3.1

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: b0763f000cc10d04b861503e9e83950663abafb8
4
- data.tar.gz: 9dfd1534121c6aa203c27b2b7b4289affce50f5e
3
+ metadata.gz: b04ed329d37a75cec4ac021450cc76c9abe7362b
4
+ data.tar.gz: 820b7d2fdf05b91463e72a2bcb96de6e43494afa
5
5
  SHA512:
6
- metadata.gz: 9a034ddda257dba71c7b7f5edff3e9f6257cb622ac4792d7bdb2debdee79cc664ca2df92bf83a35a9715e6078c27d7c7d623dd60e2d4261f8f8eafa4a2dddca4
7
- data.tar.gz: ebaed813e2b84404bdd944dbcc271699daf8f820bf701381655ecdb874403aa9de2cba5fe5c341bf8ddd16935692f5f9211c609a804ee3092f78f11f4007d97b
6
+ metadata.gz: 14e16ef273416146553716e841f2f62eb90d54d09320f2cd9cb39a1afca4ef5d3be80d9db45ef24a8c9e4c9a2476a88eda4c1a9ea454b899c911d9d0b5e68979
7
+ data.tar.gz: 420c6c0ee381e9805f59b2a6fdd80903afa65ca6e74ca463e597729c5398b2fbd703833ae6aa4556ec06e15b70d5b725730faec372138f0d35ab35930b10266b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ### 1.3.1 (2015-02-03)
4
+
5
+ - Now feed titles include the full language name.
6
+
3
7
  ### 1.3.0 (2015-02-01)
4
8
 
5
9
  - Now all language feeds are automatically generated.
@@ -10,12 +10,15 @@ module Octopress
10
10
  end
11
11
 
12
12
  def multilingual_permalinks
13
- lang = Octopress.site.config['lang']
14
- { "permalinks" => {
15
- "main" => "/#{lang}/feed/",
16
- "links" => "/#{lang}/feed/links/",
17
- "articles" => "/#{lang}/feed/articles/"
18
- }}
13
+ if lang = Octopress.site.config['lang']
14
+ { "permalinks" => {
15
+ "main" => "/#{lang}/feed/",
16
+ "links" => "/#{lang}/feed/links/",
17
+ "articles" => "/#{lang}/feed/articles/"
18
+ }}
19
+ else
20
+ {}
21
+ end
19
22
  end
20
23
  end
21
24
  end
@@ -19,8 +19,8 @@ module Octopress
19
19
  title << ': ' unless title.empty?
20
20
  title << page.data['title']
21
21
 
22
- if defined? Octopress::Multilingual
23
- title << " (#{page.lang})"
22
+ if defined?(Octopress::Multilingual) && page.lang
23
+ title << " (#{Octopress::Multilingual.language_name(page.lang)})"
24
24
  end
25
25
 
26
26
  title
@@ -1,5 +1,5 @@
1
1
  module Octopress
2
2
  module Feeds
3
- VERSION = "1.3.0"
3
+ VERSION = "1.3.1"
4
4
  end
5
5
  end
@@ -56,7 +56,7 @@ module Octopress
56
56
  # New name for permalink settings in plugin config.yml
57
57
  permalink_name = "#{page.permalink_name}-#{lang}"
58
58
 
59
- # Set the permalink defaul to /en/feed/[type]
59
+ # Set the permalink defaul to /[lang]/feed/[type]
60
60
  permalink = File.join("/#{lang}", "feed", feed_type(page), '/')
61
61
 
62
62
  # Create a copy of the page
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octopress-feeds
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
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-02-01 00:00:00.000000000 Z
11
+ date: 2015-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octopress-ink